class HTMLInputElement

Form control. More...

Full nameDOM::HTMLInputElement
Definition#include <html_form.h>
InheritsDOM::HTMLElement
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


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 <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-INPUT"> INPUT element definition </a> in HTML 4.0.

DOMString  defaultValue ()

[const]

Stores the initial control value (i.e., the initial value of <code> value </code> ).

void  setDefaultValue ( const DOMString & )

see defaultValue

bool  defaultChecked ()

[const]

When <code> type </code> has the value "Radio" or "Checkbox", stores the initial value of the <code> checked </code> attribute.

void  setDefaultChecked ( bool )

see defaultChecked

HTMLFormElement  form ()

[const]

Returns the <code> FORM </code> element containing this control. Returns null if this control is not within the context of a form.

DOMString  accept ()

[const]

A comma-separated list of content types that a server processing this form will handle correctly. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accept"> accept attribute definition </a> in HTML 4.0.

void  setAccept ( const DOMString & )

see accept

DOMString  accessKey ()

[const]

A single character access key to give access to the form control. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accesskey"> accesskey attribute definition </a> in HTML 4.0.

void  setAccessKey ( const DOMString & )

see accessKey

DOMString  align ()

[const]

Aligns this object (vertically or horizontally) with respect to its surrounding text. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-align-IMG"> align attribute definition </a> in HTML 4.0. This attribute is deprecated in HTML 4.0.

void  setAlign ( const DOMString & )

see align

DOMString  alt ()

[const]

Alternate text for user agents not rendering the normal content of this element. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-alt"> alt attribute definition </a> in HTML 4.0.

void  setAlt ( const DOMString & )

see alt

bool  checked ()

[const]

Describes whether a radio or check box is checked, when <code> type </code> 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 <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-checked"> checked attribute definition </a> in HTML 4.0.

void  setChecked ( bool )

see checked

bool  disabled ()

[const]

The control is unavailable in this context. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled"> disabled attribute definition </a> in HTML 4.0.

void  setDisabled ( bool )

see disabled

long  maxLength ()

[const]

Maximum number of characters for text fields, when <code> type </code> has the value "Text" or "Password". See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-maxlength"> maxlength attribute definition </a> in HTML 4.0.

void  setMaxLength ( long )

see maxLength

DOMString  name ()

[const]

Form control or object name when submitted with a form. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-name-INPUT"> name attribute definition </a> in HTML 4.0.

void  setName ( const DOMString & )

see name

bool  readOnly ()

[const]

This control is read-only. When <code> type </code> has the value "text" or "password" only. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-readonly"> readonly attribute definition </a> in HTML 4.0.

void  setReadOnly ( bool )

see readOnly

DOMString  size ()

[const]

Size information. The precise meaning is specific to each type of field. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-size-INPUT"> size attribute definition </a> in HTML 4.0.

void  setSize ( const DOMString & )

see size

DOMString  src ()

[const]

When the <code> type </code> attribute has the value "Image", this attribute specifies the location of the image to be used to decorate the graphical submit button. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-src"> src attribute definition </a> in HTML 4.0.

void  setSrc ( const DOMString & )

see src

long  tabIndex ()

[const]

Index that represents the element's position in the tabbing order. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex"> tabindex attribute definition </a> in HTML 4.0.

void  setTabIndex ( long )

see tabIndex

DOMString  type ()

[const]

The type of control created. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-type-INPUT"> type attribute definition </a> in HTML 4.0.

DOMString  useMap ()

[const]

Use client-side image map. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-usemap"> usemap attribute definition </a> in HTML 4.0.

void  setUseMap ( const DOMString & )

see useMap

DOMString  value ()

[const]

The current form control value. Used for radio buttons and check boxes. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-value-INPUT"> value attribute definition </a> in HTML 4.0.

void  setValue ( const DOMString & )

see value

void  blur ( )

Removes keyboard focus from this element.

void  focus ( )

Gives keyboard focus to this element.

void  select ( )

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

void  click ( )

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


Generated by: ssk@tauon.ph.unimelb.EDU.AU on Wed May 23 05:55:52 2001, using kdoc 2.0a35.