skip to contentstylized crane logoWhite Crane Education

Form Objects

The form type represents an HTML "form".

Events

onresetonsubmit

Properties

action returns/sets the value of the form's action attribute
elements returns an array whose elements are the HTML elements on the form
encoding returns/sets the value of the form's enctype attribute
method returns/sets the value of the form's method attribute (i.e. either "get" or "post")
name returns/sets the value of the checkbox's name attribute
target returns/sets the window/frame to which the form's contents will be sent, this corresponds to the value of the form's target attribute

Methods

reset() resets the controls on the form
submit() submits the form's data