Javascript Reference
Categories: screen

javascript screen availLeft, availTop

@March 15, 2008, 1:22 a.m.
availLeft, availTopFirefox/Netscape/NN 4 IE n/a Chrome/Safari/DOM n/a  

Read-only  

Provide the pixel coordinates of the left and top edges of the screen that is available for content. With the standard Windows Taskbar arrangement, both values are zero. But drag the Taskbar to the left or top of the screen, and the corresponding value increases to accommodate the bar's space. Navigator 4 for the Macintosh doesn't start its screen counting until just below the fixed menu bar, but for Netscape 6, the availTop property returns 20 for the menu bar height.

 
Example
 
window.moveTo(screen.availLeft, screen.availTop);
 
Value

Integer.

 
Default

0 (Windows); 20 (Macintosh)


Powered by Linode.