THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Input Reset Object


Input Reset Object

The Input Reset article speaks to a HTML <input> component with type="reset".

Access an Input Reset Object

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

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

Tip: You can likewise get to <input type="reset"> via looking through the elements gathering of a form.

Create an Input Reset Object

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

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

Input Reset Object Properties

= Property included HTML5.

Property Description
autofocus Sets or returns whether a reset catch ought to consequently get center when the page loads
defaultValue Sets or returns the default estimation of a reset button
disabled Sets or returns whether the reset catch is debilitated, or not
form Returns a reference to the structure that contains the reset button
name Sets or returns the estimation of the name quality of a reset button
type Returns which kind of structure component the reset catch is
value Sets or returns the estimation of the esteem property of the reset button

Input Reset Object Methods

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