Does anyone know why the following would work in IE and not in
Netscape?
I've stripped all the code out but the subject of this question. What
I need to do is pass the contents of a variable automatically into the
form fields. When you run this code in IE you see the contents of the
variables in the forms text boxes but not in Netscape.

Any ideas on this would be much appreciated. 
TIA

<html>
<head>

<script language="javascript">
var nam="first field"
var email= "second field"
</script>

</head>
<body><br><br><br>

<form   name="newform" action="next.html" >
first name<INPUT  TYPE=TEXT   value="" name="name" SIZE=21 ><br>
email<INPUT  TYPE=TEXT   value="" name="email" SIZE=25 ><br><br><br>
<input type="SUBMIT" value="Accept"</form>

<script language="javascript">
newform.name.value=nam;
newform.email.value=email;
</script>

</body>
</html>


Reply via email to