HTML | DOM Input Hidden Object Last Updated : 31 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Input Hidden object in HTML DOM represents the <input> element with type = “hidden” attribute. The element can be accessed by using getElementById() method.Syntax: document.getElementById("id"); where id is assigned to the <input> tag.Property Values: defaultvalue: It is used to set or return the default value of a hidden input field.form: It returns the reference of form that contains the hidden input field.name: It is used to set or return the name attribute value of a hidden input field.type: It returns the type of form element the hidden input field belongs.value: It is used to set or return the value of the value attribute of a hidden input field. Example 1: This example describes the getElementById() method to access the <input> element with type = "hidden" attribute. html <html> <head> <title> DOM Input Hidden Object </title> </head> <body> <center> <h1 style = "color:green;"> GeeksForGeeks </h1> <h2>DOM Input Hidden Object</h2> <input type = "hidden" id = "myGeeks" value="GeeksForGeeks"> <button onclick = "Geeks()"> Submit </button> <p id = "sudo"></p> <script> function Geeks() { var g = document.getElementById("myGeeks").value; document.getElementById("sudo").innerHTML = g; } </script> </center> </body> </html> Output: Before Click on the Button : After Click on the Button : Example 2: Input Hidden Object can be created by using the document.createElement method. html <!DOCTYPE html> <html> <head> <title> DOM Input Hidden Object </title> </head> <body> <center> <h1 style = "color:green;"> GeeksForGeeks </h1> <h2>DOM Input Hidden Object</h2> <input type = "hidden" id = "myGeeks" value="GeeksForGeeks"> <button onclick = "Geeks()"> Submit </button> <p id = "sudo"></p> <script> function Geeks() { var g = document.createElement("INPUT"); g.setAttribute("type", "hidden"); document.body.appendChild(g); document.getElementById("sudo").innerHTML = "Hidden Content"; } </script> </center> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Supported Browsers: The browser supported by DOM Input Hidden Object are listed below: Google Chrome 1Edge 12Firefox 1Opera 2Safari 1 Comment More infoAdvertise with us Next Article HTML | DOM Input Hidden Object M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Style backgroundImage Property The DOM Style backgroundImage Property is used to set or return the background image of an element. Syntax: To get the backgroundImage propertyobject.style.backgroundImageTo set the backgroundImage propertyobject.style.backgroundImage = "image | none | initial | inherit" Return Values: It returns a 3 min read HTML | DOM TableRow Object The TableRow Object in HTML DOM is used to represent the HTML <tr> element. The <tr> element can be accessed by using getElementById() method. Syntax: document.getElementById("id"); The tr element can be created by using the document.createElement() method. Syntax: document.createElement 3 min read HTML DOM Style order Property The HTML DOM Style order property specifies the order of a flexible element relative to the rest of the flexible elements inside the same container element. SyntaxSet the order property.object.style.order = "number | initial | inherit"Return the order property.object.style.orderReturn ValuesIt retu 1 min read HTML | DOM Embed Object The Embed Object in HTML DOM is used to represent the <embed> element. The <embed> element can be accessed by using getElementById() method. Note: This object is new in HTML 5. Property Values: height: It sets or returns the value of the height attribute. src: It sets or returns the valu 2 min read HTML DOM Anchor Object The Anchor Object in HTML DOM is used to represent the <a> element. The anchor element can be accessed by using getElementById() method. Syntax: document.getElementById("ID"); Where ID is assigned to the anchor tag. Property Values: Property Description charset Set or return the character set. 2 min read HTML DOM ColumnGroup Object The ColumnGroup Object in HTML DOM is used to represent the HTML <colgroup> element. This tag is used to set or return the properties of <colgroup> element. It can be accessed by using getElementById() method. Syntax: document.getElementById( "ColGroup_ID" );This ColGroup_ID is assigned 2 min read HTML | DOM Window frameElement Properties HTML DOM Window frameElement property returns the iframe element in which the window is embedded or stored. If it is not stored, in that case, it simply returns a null value. Syntax: window.frameElement Return Value: It returns an IFrame object or null. Example: html <!DOCTYPE html> <html 1 min read HTML | DOM Style columnRuleStyle Property The DOM style columnRuleStyle Property in HTML is used to define or determine the style of rule between columns. Syntax : To set the property: object.style.columnRuleStyle = "none|hidden|dotted|dashed|solid| double|groove|ridge|inset|outset|initial|inherit" To return the property: object.style.colum 6 min read HTML | DOM Style columnRuleWidth Property The Style columnRuleWidth property in HTML DOM is used to define or determine the width of the rule between the columns. Syntax: It returns the columnRuleWidth property.object.style.columnRuleWidthIt is used to set columnRuleWidth property.object.style.columnRuleWidth = "medium|thin|thick|length| in 3 min read HTML DOM adoptNode() Method This DOM adoptNode() method is used to adopt a node from another document. All node types can be adopted. All child nodes along with the original node can be adopted. AdoptNode() method is used to return node objects.Syntax: document.adoptNode(node)Parameter Value: DOM adoptNode() method contains on 2 min read Like