Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Resizing browser window


  • From: trojani2000 at hotmail.com (Troy III Ajnej)
  • Subject: [Javascript] Resizing browser window
  • Date: Fri Jul 28 13:42:00 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.LaTech.edu/pipermail/javascript/attachments/20060728/0ed8f34d/attachment.html