focus function

void focus()

Moves the focus to the window's browsing context, if any.

MDN Reference

Implementation

void focus() {
  _i4.callMethod(
    _self,
    'focus',
    [],
  );
}