-2

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!

j_pingle
  • 21
  • 8

2 Answers2

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
0

Using jQuery you can do it by: $(window).width();

Please take a look at the post.

Community
  • 1
  • 1
androberz
  • 744
  • 10
  • 25