Baseline Widely available
The htmlFor
property of the HTMLOutputElement
interface is a string containing a space-separated list of other elements' id
s, indicating that those elements contributed input values to (or otherwise affected) the calculation. It reflects the for
attribute of the <output>
element.
A string.
Examplesconst outputElem = document.getElementById("result");
for (const id of outputElem.htmlFor.split(" ")) {
const elem = document.getElementById(id);
elem.style.outline = "2px solid red";
}
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3