W3cubDocs

/Haxe JavaScript

FormElement

package js.html

extends ElementDOMElementNodeEventTarget

@:native("HTMLFormElement") Available on js

The HTMLFormElement interface provides methods to create and modify form elements. document.forms - returns an array of HTMLFormElement objects referencing all forms on the page. document.forms[index] - returns an HTMLFormElement object referencing the form at the specified index. document.forms['id'] - returns an HTMLFormElement object referencing the form with the specified id. document.forms['name'] - returns an HTMLFormElement object referencing the form with the specified name.

Documentation [HTMLFormElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).

@see <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement>

Variables

acceptCharset:String

action:String

autocomplete:String

read only elements:HTMLCollection

encoding:String

enctype:String

read only length:Int

method:String

name:String

noValidate:Bool

target:String

Methods

checkValidity ():Bool

reset ():Void

submit ():Void

Throws:

null DOMError

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/FormElement.html