4

Is there a way for knowing what size was the visible portion of a page?

Are there any services that provide this? I mean, not just screen resolution, but available browser area. When a user has a lot of browser toolbars the area left for the webpage gets reduced. On the other hand, using Chrome may maximize the available space.

Thanks

DanC
  • 8,595
  • 9
  • 42
  • 64

3 Answers3

2

Using Javascript, you can get the Window.InnerHeight & .InnerWidth

Ed B
  • 6,028
  • 3
  • 26
  • 35
1

You'll have to use Javascript or JQuery to do so.

Here is a similar (answered) question

Community
  • 1
  • 1
LeonG
  • 863
  • 4
  • 11
1

I found another implementation on StackOverflow itself which used jQuery.

$(window.top).width()  
$(window.top).height()

P.S. Just don't forget the brackets as i always missed them.

Reference: https://stackoverflow.com/a/7008807

Community
  • 1
  • 1
Pinkesh Badjatiya
  • 346
  • 1
  • 5
  • 15
  • Please provide referencing links when you're using information gathered from other posts. Doing so reflects positively on you by the Stack Overflow community. – Dan Beaulieu Jun 15 '15 at 18:11