HTML <output> name Attribute
Definition and Usage
name
This attribute specifies the name of the <output> element.
name
This attribute is used to reference data after form data submission, or to reference elements in JavaScript.
Example
Perform the calculation and display the result in the <output> element:
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)"> <input type="range" id="a" value="50"> +<input type="number" id="b" value="25"> =<output name="x" for="a b"></output> </form>
Syntax
<output name="name">
Attribute Value
Value | Description |
---|---|
name | Specifies the name of the <output> element. |
Browser Support
The numbers in the table indicate the first browser version to fully support this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
10.0 | 13.0 | 4.0 | 7.0 | 11.5 |