THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Output Object


Output Object

The Yield Object is new in HTML5.

The Output object speaks to a HTML <output> element.

Note: The <output> component isn't upheld in Internet Explorer.

Access an Output Object

You can get to a <output> component by utilizing getElementById():

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

Tip: You can likewise get to a <output> component via looking through the elements accumulation of a form.

Create an Output Object

You can make a <output> component by utilizing the document.createElement() method:

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

Output Object Properties

Property Description
defaultValue Sets or returns the default estimation of a <output> element
form Returns a reference to the structure that contains the <output> element
htmlFor Returns the estimation of the for characteristic of a <output> element
labels Returns a rundown of <label> components related with the <output> element
name Sets or returns the estimation of the name trait of a <output> element
Returns which kind of HTML component the Output item represents
value Sets or returns the estimation of a <output> element

Standard Properties and Events

The Output object additionally underpins the standard properties and events.