HTML | DOM Input Hidden name Property Last Updated : 31 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Input Hidden name property in HTML DOM is used to set or return the value of the name attribute. The form data which has been submitted to the server can be identified by the name attribute. The name attribute is also used for referencing form data on the client side using JavaScript. Syntax: It returns the Input Hidden name property. hiddenObject.name It is used to set the Input Hidden name property. hiddenObject.name = name Property Values: It contains single value name which is used to specify the name of the hidden input field. Return Value: It returns a string value which represent the name of the hidden input field. Example 1: This example illustrate how to return Input Hidden name property. html <!DOCTYPE html> <html> <head> <title> HTML DOM Input Hidden name Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2> DOM Input Hidden name Property </h2> <input type="hidden" id="GFG" name ="myGeeks" value="GeeksForGeeks"> <button onclick="myGeeks()"> Submit </button> <p id="sudo" style="color:green;font-size:30px;"></p> <!-- Script to use Input Hidden name property --> <script> function myGeeks() { var x = document.getElementById("GFG").name; document.getElementById("sudo").innerHTML = x; } </script> </body> </html> Output: Before clicking on the button: After clicking on the button: Example 2: This example illustrates how to set Input Hidden name property. html <!DOCTYPE html> <html> <head> <title> HTML DOM Input Hidden name Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2> DOM Input Hidden name Property </h2> <input type="hidden" id="GFG" name ="myGeeks" value="GeeksForGeeks"> <button onclick="myGeeks()"> Submit </button> <p id="sudo" style="color:green;font-size:20px;"></p> <!-- Script to use Input Hidden name Property --> <script> function myGeeks() { var x = document.getElementById("GFG").name = "myInput"; document.getElementById("sudo").innerHTML = "The value of the name attribbute " + "was changed to " + x; } </script> </body> </html> Output: Before clicking on the button: After clicking on the button: Supported Browsers: The browser supported by DOM input Hidden name property are listed below: Google Chrome 1 Edge 12 Firefox 1 Opera 2 Safari 1 Comment More infoAdvertise with us Next Article HTML | DOM Input Hidden name Property M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML | DOM Input Hidden form Property The Input Hidden form property is used to return the reference of the form containing the Input Hidden field. It is read-only Property that returns a form object on success. Syntax: hiddenObject.form Return Values: It returns a string value which specify the reference of the form containing the Inpu 1 min read HTML | DOM Input Hidden type Property The DOM input Hidden type Property is used for returning the type of form element the hidden input field is. The Input Hidden type returns a string value which represents the type of form element the hidden input field is.Syntax: hiddenObject.type Return Values: It returns a string value which defin 1 min read HTML | DOM Input Hidden value Property The Input Hidden value property in HTML DOM is used to set or return the value of the value attribute of the hidden input field. The value attribute defines the default value of the input hidden field. Syntax: It returns the value property.hiddenObject.valueIt is used to set the value property.hidde 2 min read HTML | DOM Input FileUpload name Property The name property is used to set or return the value of the name attribute of a file upload button. The name attribute is used to identify form data after the submission to the server. Syntax: Return the name property:fileuploadObject.nameSet the name property:fileuploadObject.name=name Property Val 1 min read HTML | DOM Input URL name Property The DOM Input URL name Property in HTML DOM is used to set or return the value of name attribute of a URL field. The name attribute is required for each input field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: It returns the 2 min read Like