I want a window to open up after some one fills out this form.
This is the form code:
<form action="gy/mail_fp.asp" method="POST">
<p style="margin-top: 0; margin-bottom: 0">
<input class="shade" type="text" name="email" size="11">
<BR>
</p>
<div align="left">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="129"
id="AutoNumber8">
<tr>
<td width="100%" align="right" valign="top">
<p style="margin-top: 0; margin-bottom: 0"> <input src="images/submit.gif" type="image" type="submit" value="Submit" alt="Join" name="submit" width="28" height="7">
</td>
</tr>
</table>
</div>
</div>
</form>
This is the java script code:
<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function openWindow(url) {
popupWin = window.open(url,'new_page','width=400,height=450')
}
// done hiding -->
</script>
This is the code to link to the javascript:
JavaScriptpenWindow('gy/mail_fp.asp')
I tryed putting the ""JavaScriptpenWindow('gy/mail_fp.asp')"" in the action area and it works but... the user still has to type in their e-mail addy.
This is the form code:
<form action="gy/mail_fp.asp" method="POST">
<p style="margin-top: 0; margin-bottom: 0">
<input class="shade" type="text" name="email" size="11">
<BR>
</p>
<div align="left">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="129"
id="AutoNumber8">
<tr>
<td width="100%" align="right" valign="top">
<p style="margin-top: 0; margin-bottom: 0"> <input src="images/submit.gif" type="image" type="submit" value="Submit" alt="Join" name="submit" width="28" height="7">
</td>
</tr>
</table>
</div>
</div>
</form>
This is the java script code:
<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function openWindow(url) {
popupWin = window.open(url,'new_page','width=400,height=450')
}
// done hiding -->
</script>
This is the code to link to the javascript:
JavaScriptpenWindow('gy/mail_fp.asp')
I tryed putting the ""JavaScriptpenWindow('gy/mail_fp.asp')"" in the action area and it works but... the user still has to type in their e-mail addy.