# class HTMLFormElement

###

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

The FORM element encompasses behavior similar to a collection and an element. It provides direct access to the contained input elements as well as the attributes of the form element. See the FORM element definition in HTML 4.0.

### methods

- HTMLFormElement ( )

  returns ctor

- HTMLFormElement (other)

  returns ctor

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

- HTMLFormElement (other)

  returns ctor

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

- HTMLFormElement (impl)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  impl | HTMLFormElementImpl |

- acceptCharset ( )

  returns DOM.DOMString

  List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.0.

- action ( )

  returns DOM.DOMString

  Server-side form handler. See the action attribute definition in HTML 4.0.

- elements ( )

  returns DOM.HTMLCollection

  Returns a collection of all control elements in the form.

- enctype ( )

  returns DOM.DOMString

  The content type of the submitted form, generally "application/x-www-form-urlencoded". See the enctype attribute definition in HTML 4.0.

- length ( )

  returns long

  The number of form controls in the form.

- method ( )

  returns DOM.DOMString

  HTTP method used to submit form. See the method attribute definition in HTML 4.0.

- name ( )

  returns DOM.DOMString

  Names the form.

- reset ( )

  returns Nothing

  Restores a form element's default values. It performs the same action as a reset button.

- setAcceptCharset (a0)

  returns Nothing

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

  see acceptCharset

- setAction (a0)

  returns Nothing

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

  see action

- setEnctype (a0)

  returns Nothing

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

  see enctype

- setMethod (a0)

  returns Nothing

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

  see method

- setName (a0)

  returns Nothing

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

  see name

- setTarget (a0)

  returns Nothing

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

  see target

- submit ( )

  returns Nothing

  Submits the form. It performs the same action as a submit button.

- target ( )

  returns DOM.DOMString

  Frame to render the resource in. See the target attribute definition in HTML 4.0.