Forum Moderators: open
"button" is not valid value for the "TYPE" attribute in HTML20. Valid values for this attribute are: Dynamic expression, checkbox, hidden, image, password, radio, reset, submit, text.
I want to put an ordinary form button on a form, and use it to call a JavaScript function. "submit" and "reset" buttons will do stuff to the form (submit it and reset it, obviously). So what valid input type can I use for an ordinary form button?
<INPUT TYPE="submit" NAME="Submit"
VALUE="Buy Now!">
<INPUT TYPE="reset"
VALUE="Clear Form">
Note: The NAME is an identifier for when you analyze the results, but is not necessary if you don't need it.
<added> Sorry, I just now understood the nature of your post. I use an image for the button in a site-search which calls an external JS (but I am using HTML 4.01 Transitional) TYPE="image" SRC="path/file.type" </added>