Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Browser Side
/
HTML
7:12 am May 1, 2026
This page requires javascript.
Forum Moderators:
open
Message Too Old, No Replies
Getting windows height
Getting windows height
ThreeSwords
Msg#:4159053
9:01 am on Jun 25, 2010
(gmt 0)
Hello
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.
so...?
i want to know the height of the free to right part of the windows.
tedster
Msg#:4159243
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.
ThreeSwords
Msg#:4159710
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
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Apr
,
Mar
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
April 2026 Google Search Observations
what do they want?
SEO question
I need some SEO help
Hello again, it's been a while
Do you get tired of others copying your content?
iPhone Safari 26.4.1 errors: IPv4 & Host
5 SEO Tips That Actually Worked for My Blog in 2026
AdSense Earnings and Observations - April 2026
Home
Forums Index
Browser Side
/
HTML
7:12 am May 1, 2026