Form JavaScript Tutorial

Syntax

document.form.button.blur()
The blur() method removes the focus from a button.


    
        
    
    
    
    
                   value="I hold my focus after a click"
             name="button1">

                   value="I can not hold my focus after a click"
             name="button2"
             onClick="removeFocus()">