HTML DOM Input Submit type Property Last Updated : 29 Jan, 2024 Comments Improve Suggest changes Like Article Like Report 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 example returns the type of form element of the submit field. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Submit type Property </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <h2>HTML DOM Input Submit type Property</h2> <form id="myGeeks"> <input type="submit" id="Geeks" value="Submit @ geeksforgeeks"> </form> <p> Click on below button to Get Input Submit Type Property Value </p> <button onclick="myGeeks()"> Click Here! </button> <p id="result"></p> <!-- Script to return submit type Property --> <script> function myGeeks() { let btn = document.getElementById("Geeks").type; document.getElementById("result").innerHTML = btn; } </script> </body> </html> Output: Supported Browsers: Google Chrome 1Edge 12Firefox 1OperaSafari 1 Comment More infoAdvertise with us Next Article HTML DOM Input Submit type Property M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML DOM Input Submit value Property 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 = textProp 2 min read HTML DOM Input Tel type Property The DOM Input tel type property in HTML DOM is used to return the type of form element of the input tel field. It always returns the "tel" for an Input tel field. Syntax: telObject.typeReturn Values: It returns a string value that represents the type of form element of the tel field. The below progr 1 min read HTML DOM Input Text type Property The Input Text type Property in HTML DOM is used to return the type of form element of the text field. It always returns the text for an Input text field. Syntax: textObject.typeReturn Value: It returns a string value that represents the type of form element the input text field is. Below program i 1 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 URL type Property The DOM Input URL type Property in HTML DOM is used for returning the Which type of form element the URL field is. This Property will always return "URL".Syntax: urlObject.type Return Value: It returns a string value which represent the type of form element the URL field is. Example: This Example il 1 min read Like