Window position & size

[Total: 0    Average: 0/5]

Have you ever wondered the size of your window on your screen and where it is positioned on your screen?

Body Code:

To have this work when you resize or move the window:<BR>
&lt;body onresize=window.location.href=window.location.href onClick=window.location.href=window.location.href&gt;
<HR>
<script>
<!--
{
var FromTop = self.screenTop;
var FromLeft = self.screenLeft;
var WindowWidth = document.body.clientWidth;
var WindowHeight = document.body.clientHeight;
document.write('<Br>From Top ');
document.write(FromTop);
document.write('<BR>From Left ');
document.write(FromLeft);
document.write('<br>Window Width ');
document.write(WindowWidth);
document.write('<BR>Window Height ');
document.write(WindowHeight);
}
//-->
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *