HTML DOM Output Objekt

Output object

The Output object represents the HTML <output> element.

Note:Internet Explorer / Edge does not support the <output> element.

Access Output object

You can use getElementById() to access the <output> element:

var x = document.getElementById("myOutput");

Try it yourself

Tip:You can also access the <output> element by searching the element collection of the form.

Create Output object

You can use the document.createElement() method to create <output> elements:

var x = document.createElement("OUTPUT");

Try it yourself

Output object properties

Eigenschaften Description
defaultValue Set or return the default value of the <output> element.
form Return a reference to the form containing the <output> element.
htmlFor Return the value of the for attribute of the <output> element.
labels Return the list of <label> elements associated with the <output> element.
name Set or return the value of the name attribute of the <output> element.
type Return the type of HTML element represented by the Output object.
value Set or return the value of the <output> element.

Standardattribute und Ereignisse

Output-Objekt unterstützt StandardsEigenschaftenundEreignisse.

Verwandte Seiten

HTML-Referenzhandbuch:HTML <output>-Tag