class HTMLInputElement

# class HTMLInputElement | Form control. More...
Full name | `DOM::HTMLInputElement`
Definition | `#include <html_form.h>`
Inherits | DOM::HTMLElement [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- HTMLInputElement ()
- HTMLInputElement (const HTMLInputElement &other)
- HTMLInputElement (const Node &other)
- HTMLInputElement & operator = (const HTMLInputElement &other)
- HTMLInputElement & operator = (const Node &other)
- ~HTMLInputElement ()
- DOMString defaultValue () const
- void setDefaultValue ( const DOMString & )
- bool defaultChecked () const
- void setDefaultChecked ( bool )
- HTMLFormElement form () const
- DOMString accept () const
- void setAccept ( const DOMString & )
- DOMString accessKey () const
- void setAccessKey ( const DOMString & )
- DOMString align () const
- void setAlign ( const DOMString & )
- DOMString alt () const
- void setAlt ( const DOMString & )
- bool checked () const
- void setChecked ( bool )
- bool disabled () const
- void setDisabled ( bool )
- long maxLength () const
- void setMaxLength ( long )
- DOMString name () const
- void setName ( const DOMString & )
- bool readOnly () const
- void setReadOnly ( bool )
- DOMString size () const
- void setSize ( const DOMString & )
- long getSize () const
- void setSize ( long )
- DOMString src () const
- void setSrc ( const DOMString & )
- long tabIndex () const
- void setTabIndex ( long )
- DOMString type () const
- void setType (const DOMString&)
- DOMString useMap () const
- void setUseMap ( const DOMString & )
- DOMString value () const
- void setValue ( const DOMString & )
- void blur ( )
- void focus ( )
- void select ( )
- void click ( )

#### Protected Methods

- HTMLInputElement (HTMLInputElementImpl *impl)

## Detailed Description

Form control. Note. Depending upon the environment the page is being viewed, the value property may be read-only for the file upload input type. For the "password" input type, the actual value returned may be masked to prevent unauthorized use. See the INPUT element definition in HTML 4.0.

HTMLInputElement () | ### HTMLInputElement

HTMLInputElement (const HTMLInputElement &other) | ### HTMLInputElement

HTMLInputElement (const Node &other) | ### HTMLInputElement

HTMLInputElement (HTMLInputElementImpl *impl) | ### HTMLInputElement

[protected]

HTMLInputElement & operator = (const HTMLInputElement &other) | ### operator =

Reimplemented from HTMLElement.

HTMLInputElement & operator = (const Node &other) | ### operator =

Reimplemented from HTMLElement.

~HTMLInputElement () | ### ~HTMLInputElement

DOMString defaultValue () | ### defaultValue

[const]

Stores the initial control value (i.e., the initial value of `value` ).

void setDefaultValue ( const DOMString & ) | ### setDefaultValue

see defaultValue

bool defaultChecked () | ### defaultChecked

[const]

When `type` has the value "Radio" or "Checkbox", stores the initial value of the `checked` attribute.

void setDefaultChecked ( bool ) | ### setDefaultChecked

see defaultChecked

HTMLFormElement form () | ### form

[const]

Reimplemented from Element.

DOMString accept () | ### accept

[const]

A comma-separated list of content types that a server processing this form will handle correctly. See the accept attribute definition in HTML 4.0.

void setAccept ( const DOMString & ) | ### setAccept

see accept

DOMString accessKey () | ### accessKey

[const]

A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

void setAccessKey ( const DOMString & ) | ### setAccessKey

see accessKey

DOMString align () | ### align

[const]

Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

void setAlign ( const DOMString & ) | ### setAlign

see align

DOMString alt () | ### alt

[const]

Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.0.

void setAlt ( const DOMString & ) | ### setAlt

see alt

bool checked () | ### checked

[const]

Describes whether a radio or check box is checked, when `type` has the value "Radio" or "Checkbox". The value is TRUE if explicitly set. Represents the current state of the checkbox or radio button. See the checked attribute definition in HTML 4.0.

void setChecked ( bool ) | ### setChecked

see checked

bool disabled () | ### disabled

[const]

The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

void setDisabled ( bool ) | ### setDisabled

see disabled

long maxLength () | ### maxLength

[const]

Maximum number of characters for text fields, when `type` has the value "Text" or "Password". See the maxlength attribute definition in HTML 4.0.

void setMaxLength ( long ) | ### setMaxLength

see maxLength

DOMString name () | ### name

[const]

Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.

void setName ( const DOMString & ) | ### setName

see name

bool readOnly () | ### readOnly

[const]

This control is read-only. When `type` has the value "text" or "password" only. See the readonly attribute definition in HTML 4.0.

void setReadOnly ( bool ) | ### setReadOnly

see readOnly

DOMString size () | ### size

[const]

void setSize ( const DOMString & ) | ### setSize

long getSize () | ### getSize

[const]

Size information. The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.0.

void setSize ( long ) | ### setSize

see getSize

DOMString src () | ### src

[const]

When the `type` attribute has the value "Image", this attribute specifies the location of the image to be used to decorate the graphical submit button. See the src attribute definition in HTML 4.0.

void setSrc ( const DOMString & ) | ### setSrc

see src

long tabIndex () | ### tabIndex

[const]

Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.

void setTabIndex ( long ) | ### setTabIndex

see tabIndex

DOMString type () | ### type

[const]

The type of control created. See the type attribute definition in HTML 4.0.

void setType (const DOMString&) | ### setType

see type

DOMString useMap () | ### useMap

[const]

Use client-side image map. See the usemap attribute definition in HTML 4.0.

void setUseMap ( const DOMString & ) | ### setUseMap

see useMap

DOMString value () | ### value

[const]

The current form control value. Used for radio buttons and check boxes. See the value attribute definition in HTML 4.0.

void setValue ( const DOMString & ) | ### setValue

see value

void blur ( ) | ### blur

Removes keyboard focus from this element.

void focus ( ) | ### focus

Gives keyboard focus to this element.

void select ( ) | ### select

Select the contents of the text area. For `INPUT` elements whose `type` attribute has one of the following values: "Text", "File", or "Password".

void click ( ) | ### click

Simulate a mouse-click. For `INPUT` elements whose `type` attribute has one of the following values: "Button", "Checkbox", "Radio", "Reset", or "Submit".

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:43 2003, using kdoc 2.0a54.