Form JavaScript Tutorial

The type property represents the HTML TYPE attribute of the Reset button.
In the case of a Reset button, this will always be reset.


    
     Example of the reset type property
    
    
    
    Enter Name: 
    

    Enter Phone: 
    


           onClick='alert("The button type is: " + document.form1.resetbutton.type)'>