Form JavaScript Tutorial

Syntax

document.form.button.name
The name property provides access to the NAME attribute of the button as specified by the tag.
This property is a read-only string.


    
    
        
    
                   value="Big Button"
             name="myButton"
             onClick="displayMessage()">