Results 1 - 4 of 4

HTMLLabelElement

The HTMLLabelElement interface gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface.
API HTML DOM HTMLLabelElement Interface Reference

HTMLLabelElement.htmlFor

The HTMLLabelElement.htmlFor property reflects the value of the for content property. That means that this script-accessible property is used to set and read the value of the content property for, which is the ID of the label's associated control element.
Forms HTML DOM htmlFor HTMLLabelElement Reference

HTMLLabelElement.control

The read-only HTMLLabelElement.control property returns a reference to the control (in the form of an object of type HTMLElement or one of its derivatives) with which the <label> element is associated, or null if the label isn't associated with a control.
control Forms HTML DOM HTMLLabelElement Property Read-only Reference

HTMLLabelElement.form

The read-only HTMLLabelElement.form property returns an HTMLFormElement object which represents the form of which the label's associated control is a part, or null if there is either no associated control, or if that control isn't in a form.
form Forms HTML DOM HTMLLabelElement Property Read-only Reference