/ Published in: JavaScript

pretty basic; dimensions of screen and browser display window
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript" language="JavaScript"> document.write("screen width = " + screen.width + "px.<br>"); document.write("screen height = " + screen.height + "px.<br>"); document.write("browser width = " + document.documentElement.clientWidth + "px.<br>"); //document.write("browser width is " + document.body.clientWidth + "px.<br>"); document.write("browser height = " + document.documentElement.clientHeight + "px.<br>"); //document.write("browser height is " + document.body.clientHeight + "px.<br>"); </script>
Comments
