HTMLLabelElement.form

The read-only HTMLLabelElement.form property returns an HTMLFormElement object which represents the form of which the label's associated control is a part, or null if there is either no associated control, or if that control isn't in a form.

This property is just a shortcut for HTMLLabelElement.control.form.

Syntax

form = HTMLLabelElement.form

Value

An HTMLFormElement which represents the form with which the label's control is associated. If control is null (meaning the label isn't associated with a control), or if the control isn't part of a form, this property returns null.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'form' in that specification.
Living Standard Initial definition

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
formChrome Full support YesEdge Full support 12Firefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support
Full support

See also