Form JavaScript Tutorial

Syntax

document.form.button.value
The value property provides access to the VALUE attribute of the button.
This property is a read-only string that is displayed in the graphical button.


    
      Please enter your name:
                   name="nameBox">
                   name="customizeTheButton"
             value="Customize the button"
             onClick="customizeButton()">

                   name="theButton"
             value="Press"
             onClick="displayAlert()">