window.onBlur

JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax

onBlur="command"

Description

The onBlur event handler is a property of a Window object and is fired when the focus is moved away from that particular window instance. Care should be taken when using this event handler, because it is possible to get into an infinite loop when using onFocus event handler or focus() method. Note that when this event handler is called within the <body> tag, it is overridden if a <frame> tag that also uses this event handler loaded the document.

Note

Some Navigator 3 browsers do not fully support this event handler when called in a <frameset> tag.

Example

Listing 7.555 has a frame set with two frames. The first frame, toc, has the onBlur ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.