top

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

MDN Reference