Form JavaScript Tutorial

Syntax

onBlur="command"
The onBlur event handler is defined in an tag and specifies what to do when the button loses focus.


    
                   value="Big Button"
             name="myButton"
             onBlur="alert('Blur event occurred')">