HTMLLabelElement:form 属性
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
HTMLLabelElement.form
只读属性返回表示与标签关联的控件所属表单的 HTMLFormElement
对象,如果没有关联的控件,或者该控件未与表单关联,则为 null
。
这个属性是 HTMLLabelElement.control.form
的快捷方式。
值
HTMLFormElement
,表示与标签的 control
像关联的表单。如果 control
是 null
(意味标签与控件无关),或者如果控件不是不属于某个表单,属性返回 null
。
规范
Specification |
---|
HTML # dom-label-form-dev |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
form |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.