onactivate of type Function

Occurs when the object is set as the active element, which is the element that has focus when the parent document has focus. The active element retains focus in the parent document even when focus is shifted from the parent to another application.

To invoke, click an element (other than the active element), use the keyboard to move focus, or invoke the focus() method.

  • Bubbles: Yes

  • Cancelable: No

  • Context Info: fromElement, srcElement

This attribute is an extension to HTMLElement.

See also onbeforeactivate, onbeforedeactivate.