focus

fun focus()(source)

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

MDN Reference