Monday, January 11, 2010

Get the browser width and height in internet explorer


<script type=”text/javascript”>
w = 0;
h = 0;
w = document.documentElement.clientWidth;
h = document.documentElement.clientHeight;

alert("w: " + w + ", h: " + h);


</script>

No comments:

Post a Comment