<BUTTON>...</BUTTON>
This attribute creates a button that the user can push. The difference between
this element and buttons created with the INPUT element is that inside a button
element you can put content, like text or images. This content is then part of
the button.
<!ELEMENT BUTTON - -
(%flow;)* -(A|%formctrl;|FORM|FIELDSET)
-- push button -->
<!ATTLIST BUTTON
%attrs; -- %coreattrs, %i18n, %events --
name CDATA #IMPLIED
value CDATA #IMPLIED -- sent to server when submitted --
type (button|submit|reset) submit -- for use as form button --
disabled (disabled) #IMPLIED -- unavailable in this context --
tabindex NUMBER #IMPLIED -- position in tabbing order --
accesskey %Character; #IMPLIED -- accessibility key character --
onfocus %Script; #IMPLIED -- the element got the focus --
onblur %Script; #IMPLIED -- the element lost the focus --
>
from the HTML 4.0 DTD,
"Copyright ©
World Wide Web Consortium,
(Massachusetts Institute of Technology,
Institut National de Recherche en Informatique et en Automatique,
Keio University).
All Rights Reserved."
Core attributes:
class
id
style
title
Internationalization attributes:
dir
lang
Events:
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
ACCESSKEY
Description of the accesskey attribute
DISABLED
This attribute makes the button non-functional.
NAME
Give the button a name that can be used in scripts. This name is also sent to
the server when the form is submitted.
TABINDEX
Description of the TABINDEX attribute
TYPE
This attribute defines the type of button. These are the possible values:
Value |
Description |
button |
Creates a button. The action that is triggered by using this button is
defined by the ONCLICK attribute.
|
reset |
Creates a button that users can click to reset form fields to their initial
state when the document was first loaded. Reset buttons are never sent as
part of the form's contents.
|
submit |
Creates a button that users can click to submit the form's contents to the
server. If the name attribute is given then the submit button's name/value
pair will be included in the submitted data. You can include several submit
buttons in the form.
|
ONBLUR
Description of the ONBLUR attribute
ONFOCUS
Description of the ONFOCUS attribute
VALUE
Set the initial value of the button. This value can be changed by scripts.
 |
<FORM>
<BUTTON type="reset" accesskey="r" tabindex="2">Reset the<BR>form values</BUTTON>
</FORM>
|
|
 |
|
|
 |
<FORM>
<BUTTON type="button" tabindex="1"><IMG src="IMG1.gif"></BUTTON>
</FORM>
|
|
 |
|