469,271 Members | 1,431 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Width & Height of browser viewport.

HI fellows, How can I get visible viewport dimensions of any browser ?

Aug 24 '06 #1
2 6008

co************@gmail.com wrote:
HI fellows, How can I get visible viewport dimensions of any browser ?
IE, Opera - document.body.offsetWidth & document.body.offsetHeight

Opera, Firefox, Netscape- window.innerWidth & window.innerHeight

Note that if you use document.body.offsetWidth & height, the body tag
may need to be parsed first. Also note that in Firefox and Netscape the
size returned by document.body.offsetWidth & Height is that of the
document, not the window (which would make sense, but IE doesn't see it
that way)...

Aug 24 '06 #2
rf
co************@gmail.com wrote
HI fellows, How can I get visible viewport dimensions of any browser ?
Looks like those FAQ entries posted every day are working :-). Wasn't it
just two days ago that this exact FAQ was posted? And commented upon
heavily.

Cheers
Richard.
Aug 24 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

157 posts views Thread by Dennis | last post: by
8 posts views Thread by Harris Kosmidis | last post: by
6 posts views Thread by Tweety | last post: by
8 posts views Thread by Martin Honnen | last post: by
6 posts views Thread by msoliver | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.