Input Range stepDown() method

Definition and usage

stepDown() The method decreases the value of the slider control by the specified number.

Tip:To increase the value, please use stepUp() method.

Instance

Example 1

Decrease the value of the slider control by "10":

document.getElementById("myRange").stepDown(10);

Try it yourself

Example 2

Decrease the value of the slider control by "1" (default):

document.getElementById("myRange").stepDown();

Try it yourself

Syntax

rangeObject.stepDown(number)

Parameter Value

Parameter Description
number

Required. Specifies the amount by which the value of the slider control should decrease.

If omitted, the value is reduced by "1".

Technical Details

Return Value:

No Return Value.

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 12.0 Support Support Support