HTML | DOM Input Submit Object Last Updated : 26 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Input Submit object in HTML DOM represents the HTML <input> element with type = "submit" attribute. Syntax: It creates an Input Submit Object.document.createElement("INPUT")It is used to access an Input Submit Object.document.getElementById("id") Property Values: autofocus: It sets or returns whether a submit button should automatically get focus when the page loads or not.defaultValue: It sets or returns the default value of the submit button.disabled: It sets or returns whether the submit button is disabled or not.form: It returns a reference to the form that contains the submit button.formAction: It sets or returns the value of the formAction attribute of the submit button.formEnctype: It sets or returns the value of the formEnctype attribute of the submit button.formMethod: It sets or returns the value of the formMethod attribute of the submit button.formNoValidate: It sets or returns whether the submit button, allows the form-data to be validated or not.formTarget: It sets or returns the value of the formTarget attribute of the submit button.name: It sets or returns the value of the name attribute of the submit button.type: It returns the form element type of the submit button.value: It sets or returns the value of the value attribute of the submit button. Return Value: It returns the object, corresponding to the input submit action performed. Example 1: This example creates an Input Submit Object html <!DOCTYPE html> <html> <head> <title> HTML DOM Input Submit Object </title> </head> <body> <h2> HTML DOM Input Submit Object </h2> <p> Click on the button to create submit button </p> <button onclick = "myGeeks()"> Click Here! </button> <!-- Script to create submit button --> <script> function myGeeks() { var btn = document.createElement("INPUT"); btn.setAttribute("type", "submit"); btn.value = ("Submit @ geeksforgeeks"); document.body.appendChild(btn); } </script> </body> </html> Output: Before click on the button: After click on the button: Example 2: This example describes the access of an Input Submit Object HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Submit Object </title> </head> <body> <h2> HTML DOM Input Submit Object </h2> <p> Click on the button to create submit button </p> <input type = "submit" id = "Geeks" value = "Submit @ geeksforgeeks"> <button onclick = "myGeeks()"> Click Here! </button> <p id = "GFG"></p> <!-- Script to create submit button --> <script> function myGeeks() { var btn = document.getElementById("Geeks").value; document.getElementById("GFG").innerHTML = btn; } </script> </body> </html> Output: Before click on the button: After click on the button: Supported Browsers: The browser supported by DOM Input Submit Object are listed below: Google Chrome 1 and aboveFirefox 1 and aboveEdge 12 and aboveOperaSafari 1 and above Comment More infoAdvertise with us R riarawal99 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML DOM Textarea disabled Property The DOM Textarea disabled Property is used to set or return whether the textarea element would be disabled or not. A disabled text area is un-clickable and unusable. It is a boolean attribute and is used to reflect the HTML Disabled attribute. Syntax: It is used to return the disabled property.texta 2 min read HTML | DOM Input Week Object The Input Week object in HTML DOM represents an <input> element with type = "week" attribute. The element can be accessed by using getElementById() method. Syntax: document.getElementById("id"); where id is assigned to the <input> tag. Property Values: list: It returns the reference of d 3 min read HTML | DOM Style borderImageSource Property The DOM Style borderImageSource Property is used to set or return the image to be used instead of the styles given by the border-style property. Syntax: To get the borderImageSource propertyobject.style.borderImageSourceTo set the borderImageSource propertyobject.style.borderImageSource = "none | im 3 min read HTML | DOM Progress max Property The DOM Progress max Property is used to set or return the value of the max attribute of an <progress> element. The max attribute represents the total work is to be done for completing a task. Syntax: It is used to return the progress max property. progressObject.maxIt is used to set the progr 2 min read HTML | DOM Textarea autofocus Property The DOM Textarea autofocus Property is used to set or return whether the element should get focus when the page loads. This property is used to reflect the HTML autofocus attribute. Syntax: It is used to Return the autofocus property. textareaObject.autofocusIt is used to Set the autofocus property. 2 min read HTML | DOM ClipboardEvent The ClipboardEvent refers to all the events which occur when the clipboard is modified. All the properties and methods are inherited from the âEvent Objectâ. There are 3 main ClipboardEvents:oncopyoncutonpasteReturn Value: It returns an object containing the data affected by the clipboard operation. 1 min read HTML | DOM Input Range Object The Input Range Object in HTML DOM is used to represent the HTML < input > element with type="range". This object is used to access or create the <input> element. This element can be accessed by using getElementById() method. Syntax: document.getElementById("Input_ID"); This Input_ID is 2 min read HTML | DOM Window closed Property The Window closed property in HTML DOM is used to return a value that indicates whether the referred window is closed or not. Syntax: window.close() Return Value: A Boolean value, true if window is closed otherwise false. Example: HTML <!DOCTYPE html> <html> <head> <title> HT 1 min read HTML | DOM Style textAlignLast Property The Style textAlignLast property in HTML DOM is used to set the alignment of the last line of the text. Syntax: Return the textAlignLast property: object.style.textAlignLast Set the textAlignLast property: object.style.textAlignLast = "auto | left | right | center | justify | start | end | initial | 2 min read HTML | DOM TouchEvent When a user touches a touch-based device the resulted events are handled by TouchEvent Object. The touch events consist of three types of interfaces i.e. Touch, TouchEvent and TouchList. The single contact point events on a touch-sensitive device are handled by the Touch interface. The events which 2 min read Like