Search code examples
browservisiblearea

Way to determine the visible size of the web page


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


Solution

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