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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript error

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
Here is my script I'm using:

<script language=&quot;Javascript&quot;>
var IE4 = (document.all && !document.getElementById) ? true : false;
var NS4 = (document.layers) ? true : false;
var IE5 = (document.all && document.getElementById) ? true : false;
var N6 = (document.getElementById && !document.all) ? true : false;


if (IE5 == false) or (N6 == false)
{window.location=&quot;index.asp?SSID=&quot; + &quot;<%=request(&quot;SSID&quot;)%>&quot;}
</script>

**********Now the problem********

In IE 4.0, I get a javascript error line 12. In Netscape 6, it tells me it can't find the script. It works fine in IE 5.5 and Netscape 4.76. Any ideas?

Thanks!
Erica
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top