JavaScript » Button » focus

Syntax:
button.focus( )

This method gives focus to the specified Button object.