August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onBlur="command"
The onBlur event handler is defined in an <input> tag and specifies what to do when the button loses focus.
The code in Listing 7.28 uses the onBlur event handler to display an alert box any time the button loses focus.
<html>
<form name="myForm">
<input type="button"
value="Big Button"
name="myButton"
onBlur="alert('Blur event occurred')">
</form>
</html>
|
Read now
Unlock full access