Is there a wy I can get the width of a web-page on someone's screen, or whatever width the user has his browser sized to? (I am not talking about the screen/resolution size).
Thanks.
Printable View
Is there a wy I can get the width of a web-page on someone's screen, or whatever width the user has his browser sized to? (I am not talking about the screen/resolution size).
Thanks.
HTML Code:<html>
<head>
<title></title>
</head>
<body>
<script>
document.write("screen.width = " + screen.width + "<br />");
document.write("screen.height = " + screen.height + "<br />");
document.write("screen.availWidth = " + screen.availWidth + "<br />");
document.write("screen.availHeight = " + screen.availHeight + "<br />") ;
document.write("document.body.clientWidth = " + document.body.clientWidth + "<br />");
document.write("document.body.clientHeight = " + document.body.clientHeight + "<br />");
</script>
</body>
</html>