HTML | DOM Input Submit defaultvalue Property Last Updated : 23 Sep, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The Input Submit defaultValue Property in HTML DOM is used to set or return the default value of a submit field. This property is used to reflect the HTML value attribute. The main difference between the default value and value is that the default value indicates the default value and the value contains the current value after making some changes. This property is useful to find out whether the Input submits field has been changed or not. Syntax: It is used to return the defaultValue property. submitObject.defaultValueIt is used to set the defaultValue property. submitObject.defaultValue = value Property Values: It contains single property value which defines the default value for Input submit field. Return Value: It returns a string value which represent the default value of the Input submit field. Example 1: This example illustrates how to return Input submit defaultValue Property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Submit defaultvalue Property </title> </head> <body style="text-align:center;"> <h1> GeeksForGeeks </h1> <h2> HTML DOM Input Submit defaultvalue Property </h2> <input type = "submit" id = "Geeks" value = "Submit @ geeksforgeeks"> <p> click on below button to return the Property </p> <button onclick = "myGeeks()"> Click Here! </button> <p id = "GFG"></p> <!-- Script to return submit Defaultvalue Property --> <script> function myGeeks() { var btn = document.getElementById("Geeks").defaultValue; document.getElementById("GFG").innerHTML = btn; } </script> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Example 2: This example illustrates how to set Input submit defaultValue Property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Submit defaultvalue Property </title> </head> <body style="text-align:center;"> <h1> GeeksForGeeks </h1> <h2> HTML DOM Input Submit defaultvalue Property </h2> <input type = "submit" id = "Geeks" value = "Submit @ geeksforgeeks"> <p> click on below button to set the Property </p> <button onclick = "myGeeks()"> Click Here! </button> <p id = "GFG"></p> <!-- Script to set submit Defaultvalue Property --> <script> function myGeeks() { var btn = document.getElementById("Geeks" ).defaultValue ="GeeksforGeeks"; document.getElementById("GFG").innerHTML = btn; } </script> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Supported Browsers: The browsers supported by DOM Input Submit defaultValue Property are listed below: Google Chrome 1 and aboveEdge 12 and aboveFirefox 1 and aboveApple Safari 1 and aboveOpera Comment More infoAdvertise with us Next Article HTML | DOM Input Time defaultValue Property M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Input URL defaultValue Property The DOM Input URL defaultValue Property in HTML DOM is used to set or return the default value of the URL Field. This property is used to reflect the HTML value attribute. The main difference between the default value and value is that the default value indicates the default value and the value cont 2 min read HTML DOM Input Tel defaultValue Property The Input Tel defaultValue property in HTML DOM is used to set or return the default value of the input tel field. This property is used to reflect the HTML value attribute. The main difference between the default value and value is that the default value indicates the default value and the value co 2 min read HTML | DOM Input reset defaultValue Property The Input reset defaultvalue Property in HTML DOM is used to set or return the default value of a reset field. This property is used to reflect the HTML value attribute. The main difference between the default value and value is that the default value indicates the default value and the value contai 2 min read HTML DOM Input Text defaultValue Property The Input Text defaultValue Property in HTML DOM is used to set or return the default value of the Text Field. This property is used to reflect the HTML value attribute. The main difference between the default value and value is that the default value indicate the default value and the value contain 2 min read HTML | DOM Input Time defaultValue Property The DOM Input Time defaultValue Property in HTML DOM is used to set or return the default value of the Time Field. This property is used to reflect the HTML value attribute. The main difference between the default value and value is that the default value indicates the default value and the value co 2 min read HTML | DOM Input Radio defaultvalue Property The Input Radio defaultValue Property in HTML DOM is used to set or return the default value of a Radio field. This property is used to reflect the HTML value attribute. The main difference between the default value and value is that the default value indicate the default value and the value contain 2 min read Like