Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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
WHATWG HTML Living Standard
The definition of 'form' in that specification.
Living Standard Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 4.0 (2.0) (Yes) (Yes) (Yes)

See also

文档标签和贡献者

 此页面的贡献者: Sheppy
 最后编辑者: Sheppy,