Onze vrijwilligers hebben dit artikel nog niet naar het Nederlands vertaald. Doe mee en help de klus te klaren!
U kunt het artikel ook in het English (US) lezen.

Returns a reference to the topmost window in the window hierarchy.


var topWindow = window.top;


Where the window.parent property returns the immediate parent of the current window, window.top returns the topmost window in the hierarchy of window objects.

This property is especially useful when you are dealing with a window that is in a subframe of a parent or parents, and you want to get to the top-level frameset.


Specification Status Comment
HTML Living Standard
The definition of 'window.top' in that specification.
Living Standard  
The definition of 'window.top' in that specification.
Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
topChrome Full support YesEdge Full support 12Firefox Full support Yes
Full support Yes
Notes Starting in Firefox 6, this property is read only, as defined by the standard.
IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes


Full support  
Full support
See implementation notes.
See implementation notes.

Documentlabels en -medewerkers

Laatst bijgewerkt door: mdnwebdocs-bot,