JavaScript » Window » focus

Syntax:
window.focus( )

This method is used to give focus to the specified window. This is useful for bringing windows to the top of any others on the screen.