February 27, 2001 - Finding the Window's Size in Netscape 6 | WebReference

February 27, 2001 - Finding the Window's Size in Netscape 6

Yehuda Shiran February 27, 2001
Finding the Window's Size in Netscape 6
Tips: February 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Netscape 6 is similar to Netscape Navigator 4.x in computing the window and scrollbar sizes:
  • Use
window.innerWidth to find the window's width (in pixels)
  • Use
  • window.innerHeight to find the window's height (in pixels)
  • Use
  • window.pageXOffset to find the horizontal scrolled distance (in pixels)
  • Use
  • window.pageYOffset to find the vertical scrolled distance (in pixels)