|
February 27, 2001 Finding the Window's Size in Netscape 6 Tips: February 2001
Yehuda Shiran, Ph.D.
|
|
Netscape 6 is similar to Netscape Navigator 4.x in computing the window and scrollbar sizes:
window.innerWidth to find the window's width (in pixels)
window.innerHeight to find the window's height (in pixels)
window.pageXOffset to find the horizontal scrolled distance (in pixels)
window.pageYOffset to find the vertical scrolled distance (in pixels)
People who read this tip also read these tips: Look for similar tips by subject: |