class js.html.FormElement extends Element

Available on js

FORM elements share all of the properties and methods of other HTML elements described in the element section.

This interface provides methods to create and modify FORM elements using the DOM.



Documentation for this class was provided by MDN.

Instance Fields

var acceptCharset:String

Reflects the

accept-charset  HTML attribute, containing a list of character encodings that the server accepts.

var action:String

Reflects the

action  HTML attribute, containing the URI of a program that processes the information submitted by the form.

var autocomplete:String

Reflects the

autocomplete HTML attribute, containing a string that indicates whether the controls in this form can have their values automatically populated by the browser.

var elements:HTMLCollection

All the form controls belonging to this form element.

var encoding:String

Synonym for enctype.

var enctype:String

Reflects the

enctype  HTML attribute, indicating the type of content that is used to transmit the form to the server. Only specified values can be set.

var length:Int

The number of controls in the form.

var method:String

Reflects the

method  HTML attribute, indicating the HTTP method used to submit the form. Only specified values can be set.

var name:String

Reflects the

name  HTML attribute, containing the name of the form.

var noValidate:Bool

Reflects the

novalidate HTML attribute, indicating that the form should not be validated.

var target:String

Reflects the

target HTML attribute, indicating where to display the results received from submitting the form.

function checkValidity():Bool

function reset():Void

function submit():Void