Method: Browser::DOM::Document#active_element

Defined in:
opal/browser/effects.rb

#active_elementElement (readonly)

Returns the element with focus.

Returns:

  • (Element)

    the element with focus



6
7
8
# File 'opal/browser/effects.rb', line 6

def active_element
  DOM(`#@native.activeElement`)
end