Generic buttons (see Figure 68.1) are clickable, but they don't do anything when the visitor clicks them, unlike submit and reset buttons. You must specifically program these buttons to do what you want them to do, which is usually to launch a JavaScript function. The button's input tag takes the onClick event, where you put the name of the function that you want to launch.
<form> <input type="button" name="totalButton" value="Calculate Total" onClick="doTotal();"> </form>
The name attribute of the button's input tag identifies the button, and the value attribute contains the label that appears on the button's face. The value of the onClick event is the name of the JavaScript function that launches when the visitor clicks the button.