HI,
I've changed my code, slightly.
And have now embedded the Script in Body.
It's now working - after a fashion.
It produced exactly the same results
in five different browsers:
IE, FF, Chrome, Opera and Safari.
I could imagine the Available Widths might be the same,
But I'd expect the Available Heights to be different.
Anyone have any suggestions why?
JJ
<html>
<head>
<title>Get Screen Data</title>
</head>
<body onresize="self.location.reload()">
<script type="text/javascript">
var sw = screen.width;
var sh = screen.height;
var aw = screen.availWidth;
var ah = screen.availHeight
var swmsg = "Screen Width = ";
var shmsg = "Screen Height = ";
var awmsg = "Available Width = ";
var ahmsg = "Available Height = ";
document.writeln ( swmsg + sw + 'px <br /><br />' );
document.writeln ( shmsg + sh + 'px <br /><br />' );
document.writeln ( awmsg + aw + 'px <br /><br />' );
document.writeln ( ahmsg + ah + 'px <br /><br />' );
</script>
</body>
</html>