HTMLLabelElement: control 속성

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.control 속성은 <label> 요소와 연관되어 있는 컨트롤을 참조하여 반환합니다. (폼에서는 HTMLElement 타입 혹은 그 파생 객체입니다.) 만일 라벨이 컨트롤과 연관되어 있지 않다면 null 을 반환합니다.

HTMLElement 파생 객체는 <label> 이 연관되어 있는 컨트롤을 나타내거나, 라벨이 단독 사용된 경우에는 null 입니다.

참고 : 만일 속성이 값을 가지고, HTMLLabelElement.htmlFor 도 값이 있다면, HTMLLabelElement.htmlFor 은 반드시 동일한 컨트롤을 참조해야 합니다.

명세서

Specification
HTML
# dom-label-control-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
control

Legend

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

Full support
Full support

같이 보기