<script type="text/javascript"> window.onload = function(){alert("Height="+document.getElementById("top").offsetHeight+"Width="+document.getElementById("top").offsetWidth); } </script>
<div id="top"></div>
<script type="text/javascript"> window.onload = function(){alert("Height="+document.getElementById("top").offsetHeight+"Width="+document.getElementById("top").offsetWidth); } </script>
<div id="top"></div>