Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Accessing window size in HTML/Javascript

1 view
Skip to first unread message

David Robinson

unread,
Feb 16, 2006, 4:31:02 AM2/16/06
to
Hi, can anyone help me please? I want to be able to access within
Javascript the width of the currently open window. The DOM expression
"screen.availWidth" gives me the width of the monitor in pixels, but I want
to recover the width of the window. "Window.availWidth" doesn't appear to
be defined in IE. Does anyone have any ideas?

David Robinson


Bob Barrows [MVP]

unread,
Feb 16, 2006, 8:42:09 AM2/16/06
to
Does this help?
http://msdn.microsoft.com/workshop/author/om/measuring.asp
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


David Robinson

unread,
Feb 16, 2006, 2:39:29 PM2/16/06
to
Hi Bob

Many thanks - that fixed it. Actually it was in my book, but one never
knows where to look!!

David


0 new messages