HTML DOM Input Submit value Property Last Updated : 02 Jan, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report The Input Submit value Property in HTML DOM is used to set or return the value of the Input Submit Field. The value attribute specifies the text displayed in the Submit Field. Syntax: It returns the value property.submitObject.valueIt is used to set the value property.submitObject.value = textProperty Value: It contains single value text which defines the text displayed in the submit button. Return Value: It returns the string value which represent the text displayed in the submit button. Example 1: This example illustrates how to return the Input Submit value Property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Submit value Property </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <h2> HTML DOM Input Submit value Property </h2> <input type="submit" id="GFG" value="Submit GFG"><br><br> <button onclick="myGeeks()"> Click Here </button> <p id="result"></p> <!-- Script to return submit value Property --> <script> function myGeeks() { let submitVal = document.getElementById("GFG").value; document.getElementById("result") .innerHTML = "Submit Button Value: " + submitVal; } </script> </body> </html> Output: Example 2: This example illustrates how to set the Input submit value Property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Submit value Property </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <h2> HTML DOM Input Submit value Property </h2> <input type="submit" id="GFG" value="Submit GFG"><br><br> <button onclick="myGeeks()"> Click Here </button> <p id="result"></p> <!-- Script to set submit value Property --> <script> function myGeeks() { let submitVal = document.getElementById("GFG") .value = "Submit@Geeks"; document.getElementById("result") .innerHTML = submitVal; } </script> </body> </html> Output: Supported Browsers: Google Chrome 1 and aboveEdge 12 and aboveFirefox 1 and aboveOpera Safari 1 and above Comment More infoAdvertise with us Next Article HTML DOM Input Submit name Property M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML DOM Input Submit type Property The Input Submit type Property in HTML DOM returns the type of form element of the submit field. It always returns the submit for an Input submit field. Syntax: submitObject.typeReturn Values: It returns a string that represents the type of form element an input submit field is. Example: This examp 1 min read HTML | DOM Input URL value Property The DOM Input URL value Property in HTML DOM is used to set or return the value of the input URL field. The attribute specifies the default value or the user type value. Syntax: It returns the value property.urlObject.valueIt is used to set the value property.urlObject.value = url Property Values: I 2 min read HTML | DOM Input Search value Property The DOM Input Search value Property in HTML DOM is used to set or return the value of a value attribute of the search field. The value attribute specifies the initial value of the input search Field. It contains the default value or user types. Syntax: It returns the value property.searchObject.valu 2 min read HTML DOM Input Submit name Property The Input Submit name Property in HTML DOM is used to set or return the value of name attribute of a submit 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 th 2 min read HTML | DOM Input Date value Property The Input Date value property is used for setting or returning the value of the value attribute of a date field. The Input Date value attribute can be used for specifying a date for the date field.Syntax: For returning the value property: inputdateObject.valueFor setting the value property: inputdat 2 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 Like