TOC PREV NEXT INDEX

domref



window.screen.top


Gets/sets the distance from the top of the screen.

Syntax

lTop = window.screen.top
 
window.screen.top = lTop
 

Parameters

lTop is the number of pixels from the top of the screen.

Example

// move and resize the current window, 
 
// making it like a bar across the top
 
window.resizeTo( window.screen.availHeight/4 );
 
window.screen.top = 0;
 

Notes

See also window.screen.left.

Specification

DOM Level 0. Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX