View Full Version : form tag in new window usin JS ?

10-26-2002, 02:14 PM
Firstly the code


<form method="post" action="http://members.notifylist.com/edit/joinlist"><input type="hidden" name="list_name" value="thewizsite-thewizsite"><input type="text" name="email" value="Mailing list" id="join_textarea" size="15"> <input type="submit" value="Go" id="join_button"></form>


How can I open the page in a new window when the user clicks go, using javascript. So if I wanted to open it in a 500x500 window, from where would i activate the JS function ?

Thanks ...

10-26-2002, 03:53 PM
<script type="text/javascript" language="javascript">
function openPopup(){
return true;

<form method="post" action="http://members.notifylist.com/edit/joinlist" target="_popup" onsubmit="return openPopup()">

10-26-2002, 04:57 PM
Thanks Nightfire !
That worked perfectly. Good stuff, good stuff ...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum