August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onBlur="command"
The onBlur event handler of the Layer object handles the event when the focus is removed from the layer object.
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.
<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()'> ... |
Read now
Unlock full access