• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Text.focus()

JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax

							text.focus()

Description

The focus() method of the Text object gives focus to the text box. Be careful when using this method in conjunction with the Text.blur() method. It can lead to a focus/blur loop, where the browser blurs a focus as soon as it is done, and vice versa.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint