Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

Window: top property

BaselineWidely available

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

Value

The reference to the topmost window.

Notes

Where thewindow.parent property returns the immediate parent of thecurrent window,window.top returns the topmost window in the hierarchy ofwindow objects.

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

Specifications

Specification
HTML
# dom-top-dev

Browser compatibility

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp