[Javascript] Window dimensions?

John Warner john at jwarner.com
Sat Jul 15 13:31:01 CDT 2006


Tedd, 

What is 'myWnd'? Is this a built in object for the current browser
window? Note I'm not after the dimensions of a Window I open, the user
already has a Window open when he visits my page, this is the Window I
need the dimensions of.

Thanks

John Warner


> -----Original Message-----
> From: javascript-bounces at LaTech.edu 
> [mailto:javascript-bounces at LaTech.edu] On Behalf Of tedd
> Sent: Saturday, July 15, 2006 9:18 AM
> To: [JavaScript List]
> Subject: Re: [Javascript] Window dimensions?
> 
> 
> 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
>





More information about the Javascript mailing list