WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Input Submit Object


Input Submit Object

The Input Submit object speaks to a HTML <input> component with type="submit".

Access an Input Submit Object

You can get to a <input> component with type="submit" by utilizing getElementById():

var x = document.getElementById("mySubmit");

Create an Input Submit Object

You can make a <input> component with type="submit" by utilizing the document.createElement() method:

var x = document.createElement("INPUT");
x.setAttribute("type", "submit");

Input Submit Object Properties

= Property included HTML5.

Property Description
autofocus Sets or returns whether a submit catch ought to naturally get center when the page loads
defaultValue Sets or returns the default estimation of a submit button
disabled Sets or returns whether the submit catch is crippled, or not
form Returns a reference to the structure that contains the submit button
< formAction Sets or returns the estimation of the formaction quality of a submit button
formEnctype Sets or returns the estimation of the formenctype quality of a submit button
formMethod Sets or returns the estimation of the formmethod characteristic of a submit button
formNoValidate Sets or returns whether the structure information ought to be approved or not, on submission
formTarget Sets or returns the estimation of the formtarget property of a submit button
name Sets or returns the estimation of the name trait of a submit button
type Returns which kind of structure component the submit catch is
value Sets or returns the estimation of the esteem property of the submit button

Input Submit Object Methods

Method Description
blur() Removes center from a submit button
focus() Gives center to a submit button