Layer.onBlur

JavaScript 1.2+ Nav4+ Syntax

onBlur="command"

Description

The onBlur event handler of the Layer object handles the event when the focus is removed from the layer object.

Example

Listing 7.340 shows how the onBlur event handler is used. When focus is removed from layer1, the onBlur event handler calls the showMsg() function.

Listing 7.340 Example of the onBlur Event Handler
 <html> <head> <title> Using the onBlur event handler of the Layer object</title> </head> <body> <script language="JavaScript"> <!-- Hide function showMsg(){ document.form1.text1.value = "Focus was removed from Layer 1"; } // End Hide ---> </script> <layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=200 VISIBILITY="show"onBlur='showMsg()'> ...

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.