Section 25.303. Window.onblur: event handler invoked when the window loses keyboard focus


25.303. Window.onblur: event handler invoked when the window loses keyboard focus

JavaScript 1.1:

25.303.1. Synopsis

 Function onblur 

25.303.2. Description

The onblur property of a Window specifies an event-handler function that is invoked when the window loses keyboard focus.

The initial value of this property is a function that contains the semicolon-separated JavaScript statements specified by the onblur attribute of the <body> or <frameset> tags.

25.303.3. Usage

If your web page has animation or other dynamic effects, you can use the onblur event handler to stop the animation when the window doesn't have the input focus. In theory, if the window doesn't have the focus, the user probably can't see it or isn't paying attention to it.

25.303.4. See Also

Window.blur( ), Window.focus( ), Window.onfocus; Chapter 17




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net