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 が関連付けられたフォームを表します。もし controlnull (すなわちラベルがコントロールと関連付けられていない)であるか、コントロールがフォームの一部でない場合、このプロパティは null を返します。

仕様書

Specification
HTML
# dom-label-form-dev

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
form

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報