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.