Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Retrieves the value indicating whether the object currently has focus.
Syntax
bActive = document .hasFocus( )Return Value
Boolean . Returns one of the following values:
true | Document has focus. |
false | Document does not have focus. |
Example
The following example shows how to use the hasFocus method to determine if the document has focus.
<HTML>
Standards Information
There is no public standard that applies to this method.
Applies To
|
document |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |