# class HTMLInputElement

###

Module | khtml
Namespace | DOM
Class | HTMLInputElement
Inherits | DOM::HTMLElement

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.

### methods

- HTMLInputElement ( )

  returns ctor

- HTMLInputElement (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | DOM.HTMLInputElement |

- HTMLInputElement (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | DOM.Node |

- HTMLInputElement (impl)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  impl | HTMLInputElementImpl |

- accept ( )

  returns DOM.DOMString

  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.

- accessKey ( )

  returns DOM.DOMString

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

- align ( )

  returns DOM.DOMString

  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.

- alt ( )

  returns DOM.DOMString

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

- blur ( )

  returns Nothing

  Removes keyboard focus from this element.

- checked ( )

  returns bool

  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.

- click ( )

  returns Nothing

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

- defaultChecked ( )

  returns bool

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

- defaultValue ( )

  returns DOM.DOMString

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

- disabled ( )

  returns bool

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

- focus ( )

  returns Nothing

  Gives keyboard focus to this element.

- form ( )

  returns DOM.HTMLFormElement

  ### KDE 4.0: remove.

- getSize ( )

  returns long

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

- indeterminate ( )

  returns bool

  Describes whether a radio box is indeterminate

- maxLength ( )

  returns long

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

- name ( )

  returns DOM.DOMString

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

- readOnly ( )

  returns bool

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

- select ( )

  returns Nothing

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

- selectionEnd ( )

  returns long

  Returns the character offset of end of selection, or if none, the cursor position. This operation is only supported if the type of this element is text; otherwise -1 is returned. NOTE: this method is not part of the DOM, but a Mozilla extension

- selectionStart ( )

  returns long

  Returns the character offset of beginning of selection, or if none, the cursor position. This operation is only supported if the type of this element is text; otherwise -1 is returned. NOTE: this method is not part of the DOM, but a Mozilla extension

- setAccept (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see accept

- setAccessKey (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see accessKey

- setAlign (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see align

- setAlt (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see alt

- setChecked (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  see checked

- setDefaultChecked (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  see defaultChecked

- setDefaultValue (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see defaultValue

- setDisabled (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  see disabled

- setIndeterminate (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  see indeterminate

- setMaxLength (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | long |

  see maxLength

- setName (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see name

- setReadOnly (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  see readOnly

- setSelectionEnd (offset)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  offset | long |

  Move the end of the selection (and the cursor) to the given offset in text This call has no effect if the type of this input element isn't text NOTE: this method is not part of the DOM, but a Mozilla extension

- setSelectionRange (start, end)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  start | long |
  end | long |

  Makes the position span from start to end, and positions the cursor after the selection. This call has no effect if the type of this input element isn't text or if it is not rendered. NOTE: this method is not part of the DOM, but a Mozilla extension

- setSelectionStart (offset)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  offset | long |

  Move the beginning of the selection to the given offset in text This call has no effect if the type of this input element isn't text NOTE: this method is not part of the DOM, but a Mozilla extension

- setSize (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  Deprecated

- setSize (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | long |

  see getSize

- setSrc (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see src

- setTabIndex (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | long |

  see tabIndex

- setType (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see type

- setUseMap (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see useMap

- setValue (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see value

- size ( )

  returns DOM.DOMString

  Deprecated

- src ( )

  returns DOM.DOMString

  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.

- tabIndex ( )

  returns long

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

- type ( )

  returns DOM.DOMString

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

- useMap ( )

  returns DOM.DOMString

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

- value ( )

  returns DOM.DOMString

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