Form JavaScript Tutorial

The type property represents the button's TYPE HTML attribute. For this object, it is always radio.


    
     Example of the radio type property
    
    
    
    Box 1
    


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