How do you find the dimensions inside of the web browser, [not the computer's window] using JavaScript. For example right now I am using Safari and Part of my page is covered by the Tabs etc. How do you find just the area inside that browser. Thanks!
Asked
Active
Viewed 161 times
-2
-
http://stackoverflow.com/questions/3437786/get-the-size-of-the-screen-current-web-page-and-browser-window – hindmost Apr 19 '15 at 18:51
-
1There are a tonne of examples of this throughout the web, not least here on SO. Did you research anything? – Mitya Apr 19 '15 at 18:51
-
It's just `window.innerWidth*window.innerHeight`. – Spencer Wieczorek Apr 19 '15 at 18:54
2 Answers
0
use window.innerWidth
and window.innerHeight
. More explanation can be found here: http://www.w3schools.com/jsref/prop_win_innerheight.asp

Dan12-16
- 351
- 1
- 8