[Javascript] Resizing browser window
Troy III Ajnej
trojani2000 at hotmail.com
Fri Jul 28 13:41:52 CDT 2006
Hello tedd,You asked:
> Do you have any js code that will report the current browser window > size in PC Win / IE, Fx?
No! But the code I've posted can calculate it. With a simple modification you can use itto calculate the current browser window width instead of arbitrary setting it.
add this line
viewport=document.body.clientWidth alert(viewport)
before the...var newWidth = viewport + frame + scrlbaralert(newWidth)
while commenting resizeTo(); moveTo(), and you're a go...
*Includes NN8, IEx, Op9, Fx, (probably Safari and others to)Works in almost all modern browsers; -as it seems!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________________________________________________________________
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
http://www.live.com/getstarted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060728/0ed8f34d/attachment.htm>
More information about the Javascript
mailing list