HTML DOM Output name Property Last Updated : 15 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The Output name Property in HTML DOM is used to set or return the value of the name Attribute of an <output> element. The name Attribute is used to reference the form-data after submitting the form or to reference the element in JavaScript. Syntax: It returns the name property.outputObject.name It set the name property.outputObject.name = name Property value: It contains the value name Which specifies the name of the Output Element. Return value: It returns a string value that specifies the name of the Output Element. Example 1: This Example returns an Output name Property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Output name Property </title> <style> body { text-align: center; } h1 { color: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h4> HTML DOM Output name Property </h4> <form oninput="sumresult.value = parseInt(A.value) + parseInt(B.value) + parseInt(C.value)"> <input type="number" name="A" value="50" /> + <input type="range" name="B" value="0" /> + <input type="number" name="C" value="50" /> <br /> Submit Result: <output name="sumresult" id="geeks" for="A B C"> </output> <br> <br> </form> <Button onclick="myGeeks()">Submit</Button> <h2 id="sudo"></h2> <script> function myGeeks() { let x = document.getElementById("geeks").name; document.getElementById("sudo").innerHTML = x; } </script> </body> </html> Output: Example 2: This Example sets the Output name Property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Output name Property </title> <style> body { text-align: center; } h1 { color: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h4> HTML DOM Output name Property </h4> <form oninput="sumresult.value = parseInt(A.value) + parseInt(B.value) + parseInt(C.value)"> <input type="number" name="A" value="50" /> + <input type="range" name="B" value="0" /> + <input type="number" name="C" value="50" /> <br /> Submit Result: <output name="sumresult" id="geeks" for="A B C"> </output> <br> <br> </form> <Button onclick="myGeeks()">Submit</Button> <h2 id="sudo"></h2> <script> function myGeeks() { let x = document.getElementById("geeks").name = "Total result"; document.getElementById("sudo").innerHTML = "The name was changed to " + x; } </script> </body> </html> Output: Supported Browsers: The browsers supported by HTML DOM Output name Property are listed below: Google Chrome 10.0Firefox 4.0Opera 11.0Safari 5.1 Comment More infoAdvertise with us Next Article HTML DOM Output name Property M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML Web technologies HTML-DOM Similar Reads HTML DOM name Property The DOM name Property is used to return the name of the attribute. It is used for read-only. Syntax: attribute.name Return Value: This property returns a string value that represents the name of the attribute. Example: In this example, we are using DOM name Property for the attribute. HTML <!DOCT 1 min read HTML | DOM Object name Property The HTML | DOM Object name Property is used to set or return the value of a name attribute of an <object> element. The name attribute is used to specify the name of the embedded file. Syntax: It returns the name property objObject.nameIt is used to set the name property. objObject.name = name 2 min read HTML | DOM Output htmlFor Property The HTML DOM Output htmlFor Property is used for returning the value of the for attribute of an <Output> Element. The htmlFor Attribute is used to specify the relationship between the result and the calculation. Syntax: outputObject.htmlFor Parameter: This property does not accepts any paramet 1 min read HTML DOM Output type Property The HTML DOM Output type Property is used for returning the type of Output Element, the type of element the Output object represents. This property will always return the "output". Syntax: outputObject.type Parameter: This property does not accept any parameter. Return value: It returns a string val 1 min read HTML | DOM Output form Property The Output form Property in HTML DOM is used for returning a reference to the form where an <Output> Element belongs to. It is read-only Property that returns a form object on success. Syntax: outputObject.form Note: There is no property values in HTML DOM Output form Property. Return value: A 1 min read HTML | DOM Parameter name Property The HTML DOM Parameter name Property is used for setting or returning the name attribute of a parameter. The name Attribute is used to reference the form-data after submitting the form or to reference the element in a JavaScript.Syntax: It return the name property. parameterObject.name It is used to 1 min read HTML | DOM Output value Property The HTML DOM Output value Property is used to set or return the value of the Attribute of an <Output> Element. The value Attribute is used to specify the result of the calculation. Syntax: It return the value property.outputObject.value It set the value property.outputObject.value = result Pro 2 min read HTML DOM namespaceURI property The namespaceURI DOM property returns the URI of the specified node's namespace. This property is read-only. Note: Internet Explorer 8 and earlier versions donât support this property. Return value: A string that represents the URI of the node's namespace, or null if the node isn't during a namespac 1 min read HTML DOM Option label Property The HTML DOM Option label property is used to get or set the label attribute of an <option> element in a drop-down list (<select> element). The label property represents the text label associated with the option, which is shown in the drop-down list.Syntax: It is used to return the label 2 min read HTML DOM nodeName Property The nodeName property is used to return the name of the specified node as a string. It returns different values for different nodes such as if the node attributes, then the returned string is the attribute name, or if the node is an element, then the returned string is the tag name. It is a read-onl 2 min read Like