INPUT TYPE=reset XHTML Element
The INPUT TYPE=reset element creates a button that, when clicked, resets the form's controls to their initial values. This is an inline element and does not require a closing tag.
Using this Element
There are some common properties and collections that apply to all the elements of the document object model, see Common Properties for All DOM Elements in Internet Explorer Mobile.
This element can be used within a web page with attributes.
This element can be used within scripts where it will have properties, events and methods.
Attributes
Attribute | Value | PPC | SP | Description |
---|---|---|---|---|
ACCESSKEY | 0...9, #, * | Yes | Yes | Gives access or focus to an active HTML element by using a keypad number.
Note For Pocket PCs, supported only for devices running Windows Mobile 2003 software or later. |
ALIGN | Yes | Yes | Specifies the alignment of text following the IMG reference relative to the graphic on screen.
Note Supported only for devices running PocketPC 2002 and Smartphone 2002 software or later. |
|
absbottom | Yes | Yes | This attribute is equivalent to the CSS:
|
|
absmiddle | Yes | Yes | This attribute is equivalent to the CSS:
|
|
baseline | Yes | Yes | This attribute is equivalent to the CSS:
|
|
bottom | Yes | Yes | This attribute is equivalent to the CSS:
|
|
left | Yes | Yes | This attribute is equivalent to the CSS:
|
|
middle | Yes | Yes | This attribute is equivalent to the CSS:
|
|
right | Yes | Yes | This attribute is equivalent to the CSS:
|
|
texttop | Yes | Yes | This attribute is equivalent to the CSS:
|
|
top | Yes | Yes | This attribute is equivalent to the CSS:
|
|
CLASS | Yes | Yes | Associates the element with a CSS style.
Note Supported only for devices running Windows Mobile 2003 software or later. |
|
DISABLED | Yes | Yes | Disables the element so that it appears dimmed and does not respond to user input.
Note Supported only for devices running Windows Mobile 2003 software or later. |
|
ID | Yes | Yes | Uniquely identifies the element within a document.
Note Supported only for devices running Windows Mobile 2003 software or later. |
|
NAME | String | Yes | Yes | Specifies the reset control name. |
ONBLUR | Yes | Yes | Event that occurs when the reset control loses focus by using a pointing device or tabbing navigation.
Note Supported only for devices running PocketPC 2002 and Smartphone 2002 software or later. |
|
ONCLICK | Yes | Yes | Event that occurs when the user chooses the reset control.
Note Supported only for devices running PocketPC 2002 and Smartphone 2002 software or later. |
|
ONFOCUS | Yes | Yes | Event that occurs when the reset control receives focus by a pointing device or by tabbing navigation.
Note Supported only for devices running PocketPC 2002 and Smartphone 2002 software or later. |
|
STYLE | Yes | Yes | Provides the definition of the CSS styles used for this element.
Note Supported only for devices running Windows Mobile 2003 software or later. |
|
TABINDEX | Yes | Yes | Set the order in which elements are tabbed to.
Note Supported only for devices running Windows Mobile 2003 software or later. |
|
VALUE | String | Yes | Yes | Specifies the reset control value. It is displayed as the control label. |
Scripting Properties
Property | Type | Access | Comments |
---|---|---|---|
accessKey | string | Read/Write | |
disabled | boolean | Read/Write | |
form | object | Read Only | |
name | string | Read Only | |
type | string | Read Only | Always returns: reset |
value | string | Read/Write | Set or retrieves the value of the input type=reset button. |
Scripting Events
Event | Supported | Comment |
---|---|---|
onclick | Yes | This event fires when the user taps on the reset button element. Note the event only fires if the user does a pen down while on the reset button and a pen up over the same reset button. The author can specify special handler for this event. |
onblur | Yes | |
onfocus | Yes |
Scripting Methods
Method | Support | Comments |
---|---|---|
click | Yes | Syntax:
|
focus | Yes | Syntax:
|
Requirements
Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later
See Also
Send Feedback on this topic to the authors