Javascript Reference
Categories: window

javascript window screenLeft, screenTop

@March 21, 2009, 8:12 a.m.
screenLeft, screenTop Firefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a  

 

Read-only  

Return pixel coordinates of the top-left corner of the browser content area relative to the top-left corner of the screen. A maximized browser window returns a screenLeft value of 0, but the screenTop value varies with the complement of toolbars the user chooses to display. Use window.moveTo( ) to change the window position.

 
Example
 
var fromTheTop = window.screenTop;
 
Value

Integer.

 
Default

User-dependent

Sometimes small things solves comples problems- thanks for reminding me of window.moveTo
Sandhurst - 2009-03-20

Powered by Linode.