Window top property
Window Object
Definition and Usage
The top property returns the topmost browser window of the current window.
Syntax
window.top
Browser support





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:
Try it »
Window Object