JavaScript » Text » focus

Syntax:
object.focus( )

This method gives focus to the specified Text object.