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;
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('<BR>From Left ');
document.write('<br>Window Width ');
document.write('<BR>Window Height ');

Times Viewed: 0

Leave a Reply

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