Using forms to open a link in a new window?
Question:
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...