Using forms to open a link in a new window?


Question:
How do I use an input button in a form to open a link in a new window. I have a problem when opening a window using my current method - It opens in the same window and when I hit back the previous window keeps returning .. I think the form is not updating and is stuck on the link - This is an experiment
This is my current project:

<form id="freeservices" action="post">

<br />

<input class="buttonstyle1" type="button" value="PhP Chat Software" onClick="window.location.href=... "><br>By Crafty Syntax<br>
<br>
<input class="buttonstyle1" type="button" value="Online Support" onClick="window.location.href=... Php Support Tickets<br>
<br>
<input class="buttonstyle1" type="button" value="PHP Web Calendar" onClick="window.location.href=... Calendar<br>
<br>
<input class="buttonstyle1" type="button" value="PHP NUKE" onClick="window.location.href=... Portal<br>
<br>
<input class="buttonstyle1" type="button" value="Link Farm" onClick="window.location.href=...
<br>
<input class="buttonstyle1" type="button" value="Open Chat Software" onClick="window.location.href=... <br>
<br>
<input class="buttonstyle1" type="button" value="PHPList" onClick="window.location.href=... List Management<br>
<br>
<input class="buttonstyle1" type="button" value="Photo Gallery" onClick="window.location.href=... Management <br><br>
<input class="buttonstyle1" type="button" value="phprojekt" onClick="window.location.href=... Suite <br>
<br>
<input class="buttonstyle1" type="button" value="PhPbbs" onClick="window.location.href=... "><br>Forum Software <br>
<br>
<input class="buttonstyle1" type="button" value="PostNuke " onClick="window.location.href=... Management<br>
<br>
<input class="buttonstyle1" type="button" value="Xoops Portal System" onClick="window.location.href=... Management <br>
<br>
<input class="buttonstyle1" type="button" value="B2 Weblog" onClick="window.location.href=... Authoring<br>
<br>
<input class="buttonstyle1" type="button" value="E Commerce " onClick="window.location.href=... <br>
<br>

</form>
Use target="_blank" in the form tag.

<form id="freeservices" action="post" target="_blank">

For info on target:

_blank Specifies to load the link into a new blank window.
_parent Specifies to load the link into the parent of the document the link is in.
_self Specifies to load the link into the same window the link was clicked in.
_top Specifies to load the link into the full body of the window.

The default value for target depends upon the URL and site. If the user does not leave the site, the default is _self, but if the user exits to a new site, the default is _top.

Anyway in your case you need _blank.
More Questions & Answers...
  • Can anybody help me finding good websites for 'tools & testing' computer software arena ?
  • What is six sigma mangement?
  • How many years will I get a Master's degree in Human Resources?
  • What are good grad schools for Project Management?
  • How do you file an ethics violation complaint against your Human Resources Manger?
  • Earning wife?
  • Do you think that Six Sigma is dying out or sustaining its presence in corporate America?
  • How long should you stay in a postion if you don't see yourself moving forward?
  • The questions and answers post by the user, for information only, AnswersRoom.com does not guarantee the right
    Copyright © 2007 AnswersRoom.com -   Terms of Use -   Contact us

    Hot Topic