25.303. Window.onblur: event handler invoked when the window loses keyboard focusJavaScript 1.1:25.303.1. SynopsisFunction onblur 25.303.2. DescriptionThe 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. UsageIf 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 AlsoWindow.blur( ), Window.focus( ), Window.onfocus; Chapter 17 |