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

window.focus()

JavaScript1.1+, JScript1.0+ Nav3+, IE3+, Opera3+ Syntax

							window.focus()

Description

The focus() method of the Window object places focus on the window. Be careful when using this method in conjunction with the blur() method of objects. 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