Name
TYPE — NN n/a IE 4 HTML 4
Synopsis
TYPE=”buttonType"Optional
Defines the internal style of button for the browser. A button style
is intended to be used to initiate scripted action via an event
handler. A “reset” style behaves the same way as an
INPUT element whose TYPE
attribute is set to reset, returning all elements
to their default values. A “submit” style behaves the
same way as an INPUT element whose
TYPE attribute is set to
submit. A BUTTON element whose
TYPE attribute is set to either
reset or submit must be
associated with a form for its implied action to be of any value to
the page.
Example
<BUTTON TYPE="reset"><IMG SRC="clearIt.gif" HEIGHT=20 WIDTH=18></BUTTON>
Value
Case-insensitive constant value from the following list of three:
button | reset |
submit.
Default
button
Object Model Reference
- IE
[window.]document.all.elementID.type
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access