[Javascript] Window dimensions?

tedd tedd at sperling.com
Sat Jul 15 08:18:25 CDT 2006


At 4:41 AM -0400 7/15/06, John Warner wrote:
>Is there a way to determine the internal size (the area where the
>document displays) of the browser window. Sort of:
>x = window.width
> y=window.height
>
>I need to place an object in the lower right corner of the users browser
>if this helps and I need to get it there no matter what their browser
>window size.
>
>Thanks
>
>John Warner


wndW = document.getElementById("myWnd").getAttribute("width");
wndH = document.getElementById("myWnd").getAttribute("height");

You could also use css.

hth's

tedd
-- 
------------------------------------------------------------------------------------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list