[thelist] script that works ok in IE but not in NN
Cristian Secara
secarica at fx.ro
Tue Jan 30 12:43:32 CST 2001
I have this script that gives the expected result in IE 4.x and 5.x but does
not work in Netscape Navigator 4.08.
<SCRIPT LANGUAGE=javascript 1.2>
var sw = screen.width;
var sh = screen.height;
var trigger = 768;
function PicWindow(doc)
{
if (sh < trigger)
{
alert ("screen smaller than 768");
}
else
{
alert ("screen eq or bigger than 768");
}
// ... more actions ...
}
</SCRIPT>
The function is called from a link on a thumbnail:
<A HREF="javascript:void(0)" onClick="PicWindow('./pic_01.html')">
???
What's missing for Netscape ? (or, what is generally wrong that IE tolerates
?)
Thank you.
Best wishes,
Cristi
More information about the thelist
mailing list