Method: Browser::Window#top

Defined in:
opal/browser/window.rb

#topWindow (readonly)

Returns reference to the topmost window in the window hierarchy.

Returns:

  • (Window)

    reference to the topmost window in the window hierarchy



65
66
67
# File 'opal/browser/window.rb', line 65

def top
  @top ||= Browser::Window.new(`#@native.top`)
end