Name
top — NN 2 IE 3 DOM n/a
Synopsis
Read-only
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.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.