Form Submission and size Problem in Netscape 6.0

admin

Administrator
Staff member
Hi,

I want to submit to testadv.asp from test.htm through a link and it has to be a submit and open testadv.asp in a new window with fixed size say width=300 and height=500.
The below code submits through a link and opens in new window(But not i size i want) and works only in IE 6.0 and Netscape 7.0.

I want it work in Netscape 6.0 also and it should open with a fixed size and i should be able to retrieve the submitted value in testadv.asp.

Pl look at the code below.

<html>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">


function createTarget(surl) {
document.Form1.email.value=surl;
document.Form1.action="testadv.asp";
document.Form1.submit();
//return true;
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<center>
Form Target
<p>

<!-- Special Notes: -->
<!-- Simply begin the target attribute with a name of your -->
<!-- choice, _blank, _top, etc... followed by a colon and -->
<!-- the window options string used in the window.open -->
<!-- command. Anything in this string enclosed in { and } -->
<!-- will be interpreted as JavaScript. -->

<form action="" method="post" name="Form1" target=_blank"">
<table align=center >
<tr><td align=right>Name:</td>
<td><input name=name></td></tr>
<tr><td align=right>Email:</td>
<td><input name=email ></td></tr>
<tr><td align=right>Favorite Color:</td>
<td><input name=fav_color ></td></tr>
<tr><td align=center colspan=2><a href =http://www.webdeveloper.com/forum/archive/index.php/"javascript:createTarget(document.Form1.email.value);" >Link</a></td></tr>
</table>
</form>
</center>


</html>
 
Back
Top