Javascript Reference
Categories: document

javascript document hasFocus( )

@April 13, 2009, 2:38 a.m.
hasFocus( ) NN n/a IE 6 Chrome/Safari/DOM n/a

 

 

Returns Boolean true if the document or any element in the document has focus. A background process, such as a function invoked through setTimeout( ) can find out if the document's window is currently the front window on the Desktop.

 
Parameters

None.

 
Returned Value

Boolean value: true | false.

Under moderation.
ascendrdjb0w - 2016-05-11
Under moderation.
ascendzizihl - 2016-05-01

Powered by Linode.