34,333
edits
Changes
→The JavaScript Button Object
The generic "BUTTON" type can be defined as follows:
<pre>
<input type="TEXT" name="myName" value=""/>
<input type="TEXT" name="myPhone" value=""/>
<input type="BUTTON" name="buttonName" value="Click here to submit informationfor a list of product codes" onClick="validateForm()">
</form>
</pre>
In this case we have configured the button to call a function when it is pressed. This function could, for example, validate the data entered by the user before submitting the formpop up a window containing a description or product code list.