Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Window top property

Window top property

Window Object Reference Window Object


Definition and Usage

The top property returns the topmost browser window of the current window.

Syntax

window.top


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the top property


Example

Example

When the "Check window" button is clicked, check() is called to check the state of the current window:

Runoob Tutorial(runoob.com)

    

    

Try it »


Window Object Reference Window Object