javascript window top

topNN 2 IE 3 DOM n/a  

Read-only  

This is an object reference to the browser window. Script statements from inside nested frames can refer to the browser window properties and methods or to variables or functions stored in the document loaded in the topmost position. Do not begin a reference with window.top, just top. To replace a frameset with a new document that occupies the entire browser window, assign a URL to the top.location.href property.

 
Example
 
top.location.href = "tableOfContents.html";
 
Value

window object reference.

 
Default

Browser window.


2227,Nickname,Homepage or email,Comments here,Add comment