FormElement
Interface
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.
Extends
Element
Methods
Code
bool checkValidity() #
Code
void reset() #
Resets the forms to its initial state.
void reset();
Code
void submit() #
Submits the form to the server.
void submit();
Fields
Code
String acceptCharset #
Reflects the
accept-charset
HTML attribute, containing a list of character encodings that the server accepts.
String acceptCharset;
Reflects the
action
HTML attribute, containing the URI of a program that processes the information submitted by the form.
String action;
Code
String autocomplete #
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.
String autocomplete;
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.
String enctype;
Code
final int length #
The number of controls in the form.
final int length;
Reflects the
method
HTML attribute, indicating the HTTP method used to submit the form. Only specified values can be set.
String method;
Reflects the
name
HTML attribute, containing the name of the form.
String name;
Code
bool noValidate #
Reflects the
novalidate
HTML attribute, indicating that the form should not be validated.
bool noValidate;
Reflects the
target
HTML attribute, indicating where to display the results received from submitting the form.
String target;
This page includes content from the
Mozilla Foundation that is graciously
licensed under a
Creative Commons: Attribution-Sharealike license.
Mozilla has no other association with Dart or dartlang.org. We
encourage you to improve the web by
contributing to
The Mozilla Developer Network.