focus

This is an archived page. It's not actively maintained.

focus()
Return type: no return value
Assigns the focus to the element, if it can accept the focus. The onfocus handler is called if the toplevel window is active.