Share via


INPUT TYPE=text HTML Element

The INPUT TYPE=text element creates a single-line text entry control. This is an inline element and does not require a closing tag.

If INPUT is used without a TYPE attribute or with a nonvalid TYPE, it is recognized as INPUT TYPE=text by Pocket Internet Explorer.

Attributes

Attribute Value Description
ACCESSKEY 0...9, #, * Gives access or focus to an active HTML element by using a keypad number.
CLASS   Associates the element with a CSS style.
Note   Supported only for devices running Windows Mobile 2003 software or later.
DISABLED   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   Uniquely identifies the element within a document.
Note   Supported only for devices running Windows Mobile 2003 software or later.
MAXLENGTH 0...# Specifies the text entry control maximum length, in characters.
NAME String Specifies the text entry control name.
ONBLUR   Event that occurs when the text entry control loses focus by the pointing device or by tabbing navigation.
Note   Supported only for devices running Windows Mobile 2002 software or later.
ONCHANGE   Event that occurs when the text entry control loses the input focus and its value has been modified since gaining focus.
Note   Supported only for devices running Windows Mobile 2002 software or later.
ONFOCUS   Event that occurs when the text entry control receives focus by a pointing device or by tabbing navigation.
Note   Supported only for devices running Windows Mobile 2002 software or later.
SIZE 0...# Specifies the text entry control size, in characters.
STYLE   Provides the definition of the CSS styles used for this element.
Note   Supported only for devices running Windows Mobile 2003 software or later.
TABINDEX   Sets the order in which elements are tabbed to.
Note   Supported only for devices running Windows Mobile 2003 software or later.
VALUE String Specifies the initial value for the text entry control. If the control has a name and a value (set by attribute, script or user input), on forms submission, the name or value pair is submitted to the server.

Requirements

Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.