1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman
Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript since 2004

ViewPort Size

Monday December 1, 2008
Even where different browsers put information in different places we can still use feature sensing to retrieve it from where it is put

Perhaps one of the most useful pieces of information about the browser that you can actually access via the Browser Object Model is the size of the browser's viewport. The viewport is the actual area available in which the web page gets displayed (the rest of the screen is taken up with fixed toolbars and the browser chrome even when the browser is maximised). In this tenth tutorial on the Browser Object Model we look at how we can retrieve this information even though browsers do not all store it in the same place.

ViewPort Size
Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.