Input Range type Attribute
Definition and Usage
type
The property returns the form element type of the slider control.
Note:In the following examples, Internet Explorer 9 and earlier versions will return "text" instead of "range". Internet Explorer 10 (and newer versions), Firefox, Opera, Chrome, and Safari will always return "range" for slider controls.
Example
Returns what type of form element the slider control is:
var x = document.getElementById("myRange").type;
Syntax
rangeObject.type
Technical Details
Return Value: | A string value that represents the form element type of the slider control. |
---|
Browser Support
The numbers in the table indicate the first browser version that fully supports this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |