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

같이 보기