WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Input Range Object


Input Range Object

The Information Range Object is new in HTML5.

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

Note: <input> components with type="range" are most certainly not bolstered in Internet Explorer 9 and prior versions.

Access an Input Range Object

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

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

Tip: You can likewise get to <input type="range"> via seeking through the elements accumulation of a form.

Create an Input Range Object

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

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

Input Range Object Properties

Property Description
autocomplete Sets or returns the estimation of the autocomplete property of a slider control
autofocus Sets or returns whether a slider control ought to consequently get center when the page loads
defaultValue Sets or returns the default estimation of a slider control
disabled Sets or returns whether a slider control is debilitated, or not
form Returns a reference to the structure that contains the slider control
list Returns a reference to the datalist that contains the slider control
max Sets or returns the estimation of the maximum property of the slider control
min Sets or returns the estimation of the min quality of the slider control
name Sets or returns the estimation of the name quality of a slider control
step Sets or returns the estimation of the progression quality of the slider control
type Returns which kind of structure component the slider control is
value Sets or returns the estimation of the esteem property of a slider control

Input Range Object Methods

Method Description
stepDown() Decrements the estimation of the slider control by a predefined number
stepUp() Increments the estimation of the slider control by a predefined number