Any views on this one. Following code used to perform a simple browser check.
<html>
<head>
<title>Test Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
window.location = "Main/browserchecks.asp?java=10&width=0";
//-->
</script>
<script language="JavaScript1.1">
<!--
window.location = "Main/browserchecks.asp?java=11&width=0";
//-->
</script>
<script language="JavaScript1.2">
<!--
if (Screen.Width<600)
window.location = "Main/browserchecks.asp?java=12&width=0";
else
window.location = "Main/browserchecks.asp?java=12&width=600";
//-->
</script>
<META HTTP-EQUIV="REFRESH" CONTENT="1; URL=Main/browserchecks.asp">
</head>
<body bgcolor="#c6def7">
<center>
<p> </p>
<p> </p>
<p> </p>
<a href="Main/browserchecks.asp"><img src="Images/loginmain.gif" width="100" height="40" border="0"></a>
</center>
</body>
</html>
Two different PCs, both Win98 and IE 5.0 (slightly differing builds). One works ok, the other brings up the debug window indicating the
if (Screen.Width<600)
line stating that
'Screen' is undefined.
Any thoughts? I have had a look at the obvious things, but I am at a bit of a loss on this one!#
Ta
Ibby [sig][/sig]
<html>
<head>
<title>Test Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
window.location = "Main/browserchecks.asp?java=10&width=0";
//-->
</script>
<script language="JavaScript1.1">
<!--
window.location = "Main/browserchecks.asp?java=11&width=0";
//-->
</script>
<script language="JavaScript1.2">
<!--
if (Screen.Width<600)
window.location = "Main/browserchecks.asp?java=12&width=0";
else
window.location = "Main/browserchecks.asp?java=12&width=600";
//-->
</script>
<META HTTP-EQUIV="REFRESH" CONTENT="1; URL=Main/browserchecks.asp">
</head>
<body bgcolor="#c6def7">
<center>
<p> </p>
<p> </p>
<p> </p>
<a href="Main/browserchecks.asp"><img src="Images/loginmain.gif" width="100" height="40" border="0"></a>
</center>
</body>
</html>
Two different PCs, both Win98 and IE 5.0 (slightly differing builds). One works ok, the other brings up the debug window indicating the
if (Screen.Width<600)
line stating that
'Screen' is undefined.
Any thoughts? I have had a look at the obvious things, but I am at a bit of a loss on this one!#
Ta
Ibby [sig][/sig]