HTMLFormElement

Overview

The HTMLFormElement interface represents a <form> element in the DOM. It allows access to—and, in some cases, modification of—aspects of the form, as well as access to its component elements.

Location

 

acceptCharset

 

property acceptCharset: String read write;

 

String acceptCharset { get; set; }

 

var acceptCharset: String { get{} set{} }

 

String acceptCharset { __get; __set; }

 

Property acceptCharset() As String

action

 

property action: String read write;

 

String action { get; set; }

 

var action: String { get{} set{} }

 

String action { __get; __set; }

 

Property action() As String

autocomplete

 

property autocomplete: String read write;

 

String autocomplete { get; set; }

 

var autocomplete: String { get{} set{} }

 

String autocomplete { __get; __set; }

 

Property autocomplete() As String

checkValidity

Returns true if the element's child controls are subject to constraint validation and satisfy those contraints; returns false if some controls do not satisfy their constraints. Fires an event named invalid at any control that does not satisfy its constraints; such controls are considered invalid if the event is not canceled. It is up to the programmer to decide how to respond to false.

 

method checkValidity: Boolean

 

Boolean checkValidity()

 

func checkValidity() -> Boolean

 

Boolean checkValidity()

 

Function checkValidity() As Boolean

elements

 

property elements: HTMLFormControlsCollection read;

 

HTMLFormControlsCollection elements { get; }

 

var elements: HTMLFormControlsCollection { get{} }

 

HTMLFormControlsCollection elements { __get; }

 

ReadOnly Property elements() As HTMLFormControlsCollection

encoding

 

property encoding: String read write;

 

String encoding { get; set; }

 

var encoding: String { get{} set{} }

 

String encoding { __get; __set; }

 

Property encoding() As String

length

 

property length: Int32 read;

 

Int32 length { get; }

 

var length: Int32 { get{} }

 

Int32 length { __get; }

 

ReadOnly Property length() As Int32

method

 

property method: String read write;

 

String method { get; set; }

 

var method: String { get{} set{} }

 

String method { __get; __set; }

 

Property method() As String

name

 

property name: String read write;

 

String name { get; set; }

 

var name: String { get{} set{} }

 

String name { __get; __set; }

 

Property name() As String

noValidate

 

property noValidate: Boolean read write;

 

Boolean noValidate { get; set; }

 

var noValidate: Boolean { get{} set{} }

 

Boolean noValidate { __get; __set; }

 

Property noValidate() As Boolean

reportValidity

Returns true if the element's child controls satisfy their validation constraints. When false is returned, cancelable invalid events are fired for each invalid child and validation problems are reported to the user.

 

method reportValidity: Boolean

 

Boolean reportValidity()

 

func reportValidity() -> Boolean

 

Boolean reportValidity()

 

Function reportValidity() As Boolean

requestSubmit

Requests that the form be submitted using the specified submit button and its corresponding configuration.

 

method requestSubmit(parsubmitter: dynamic)

 

void requestSubmit(dynamic parsubmitter)

 

func requestSubmit(_ parsubmitter: dynamic)

 

void requestSubmit(dynamic parsubmitter)

 

Sub requestSubmit(parsubmitter As dynamic)

Parameters:

  • parsubmitter:

target

 

property target: String read write;

 

String target { get; set; }

 

var target: String { get{} set{} }

 

String target { __get; __set; }

 

Property target() As String

 

acceptCharset

 

property acceptCharset: String read write;

 

String acceptCharset { get; set; }

 

var acceptCharset: String { get{} set{} }

 

String acceptCharset { __get; __set; }

 

Property acceptCharset() As String

action

 

property action: String read write;

 

String action { get; set; }

 

var action: String { get{} set{} }

 

String action { __get; __set; }

 

Property action() As String

autocomplete

 

property autocomplete: String read write;

 

String autocomplete { get; set; }

 

var autocomplete: String { get{} set{} }

 

String autocomplete { __get; __set; }

 

Property autocomplete() As String

elements

 

property elements: HTMLFormControlsCollection read;

 

HTMLFormControlsCollection elements { get; }

 

var elements: HTMLFormControlsCollection { get{} }

 

HTMLFormControlsCollection elements { __get; }

 

ReadOnly Property elements() As HTMLFormControlsCollection

encoding

 

property encoding: String read write;

 

String encoding { get; set; }

 

var encoding: String { get{} set{} }

 

String encoding { __get; __set; }

 

Property encoding() As String

length

 

property length: Int32 read;

 

Int32 length { get; }

 

var length: Int32 { get{} }

 

Int32 length { __get; }

 

ReadOnly Property length() As Int32

method

 

property method: String read write;

 

String method { get; set; }

 

var method: String { get{} set{} }

 

String method { __get; __set; }

 

Property method() As String

name

 

property name: String read write;

 

String name { get; set; }

 

var name: String { get{} set{} }

 

String name { __get; __set; }

 

Property name() As String

noValidate

 

property noValidate: Boolean read write;

 

Boolean noValidate { get; set; }

 

var noValidate: Boolean { get{} set{} }

 

Boolean noValidate { __get; __set; }

 

Property noValidate() As Boolean

target

 

property target: String read write;

 

String target { get; set; }

 

var target: String { get{} set{} }

 

String target { __get; __set; }

 

Property target() As String

 

checkValidity

Returns true if the element's child controls are subject to constraint validation and satisfy those contraints; returns false if some controls do not satisfy their constraints. Fires an event named invalid at any control that does not satisfy its constraints; such controls are considered invalid if the event is not canceled. It is up to the programmer to decide how to respond to false.

 

method checkValidity: Boolean

 

Boolean checkValidity()

 

func checkValidity() -> Boolean

 

Boolean checkValidity()

 

Function checkValidity() As Boolean

reportValidity

Returns true if the element's child controls satisfy their validation constraints. When false is returned, cancelable invalid events are fired for each invalid child and validation problems are reported to the user.

 

method reportValidity: Boolean

 

Boolean reportValidity()

 

func reportValidity() -> Boolean

 

Boolean reportValidity()

 

Function reportValidity() As Boolean

requestSubmit

Requests that the form be submitted using the specified submit button and its corresponding configuration.

 

method requestSubmit(parsubmitter: dynamic)

 

void requestSubmit(dynamic parsubmitter)

 

func requestSubmit(_ parsubmitter: dynamic)

 

void requestSubmit(dynamic parsubmitter)

 

Sub requestSubmit(parsubmitter As dynamic)

Parameters:

  • parsubmitter: