homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Getting windows height
Getting windows height

Msg#: 4159051 posted 9:01 am on Jun 25, 2010 (gmt 0)


I would like to grabe the windows height with javascript.

I did it with
document.body.offsetHeight But the result includes the toobars part size/height.

How can get height of the windows, getting ride of the toolbar size?

Example: when i use
document.body.offsetHeight, he tells me the windows heights about 1000. but in fact it does not height if toolbars are displayed.


i want to know the height of the free to right part of the windows.



WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4159051 posted 2:53 pm on Jun 25, 2010 (gmt 0)

Have you tried screen.availHeight - it will not include any toolbars and has universal browser support.


Msg#: 4159051 posted 6:28 am on Jun 26, 2010 (gmt 0)

it does not work, and i'am giving up on that issue

thank you for your respons

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved