top property

WindowBase? top

A reference to the topmost window in the window hierarchy.

If this WindowBase is the topmost WindowBase, top will return a reference to the WindowBase itself.

// Add an IFrame to the current window.
IFrameElement myIFrame = new IFrameElement();

// Add an IFrame inside of the other IFrame.
IFrameElement innerIFrame = new IFrameElement();

print( == window) // 'true'
print( == window) // 'true'

print( == window) // 'true'


WindowBase? get top;