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>

Comments

Popular posts from this blog

PHP: Date Difference for PHP 5.2

HTML5 video loop src change on end play function

Custom OpenCart 2.3.0.2 theme