Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript & Netscape 7+ 1

Status
Not open for further replies.

KizMar

Technical User
Mar 13, 2002
52
US
Why is it that the following line:

<script language=&quot;JavaScript&quot;>t.submit();</script>

...will submit the form in IE 6, but Netscape just sits there, like the form isn't submitting?
 
<%@ Language=VBScript %>
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>

<html>
<head>
<title>Please wait...</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>
<body>
<table height=&quot;100%&quot; width=&quot;100%&quot; align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr>
<td><td>
</tr>
</table>

<form name=&quot;t&quot; id=&quot;t&quot; action=&quot;filename.aspx&quot; method=&quot;post&quot;>
<input type=&quot;hidden&quot; name=&quot;SessionVar&quot; value=<% Session(&quot;SessionVar&quot;) %>>
</form>

<script language=&quot;JavaScript&quot;>t.submit();</script>

</body>
</html>
 

Try using:

Code:
<script language=&quot;JavaScript&quot;>document.forms['t'].submit();</script>

Hope this helps,

Dan
 
That sure did work, thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top