Latest web development tutorials
 

Input Range stepDown() Method

Input Range Object Reference Input Range Object

Example

Decrement the value of a slider control by "10":

document.getElementById("myRange").stepDown(10);
Try it Yourself »

Definition and Usage

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

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


Browser Support

Method
stepDown() Yes 12.0 Yes Yes Yes

Syntax

rangeObject.stepDown(number)

Parameter Values

Parameter Description
number Required. Specifies the amount the value of the slider control should decrease.

If omitted, the value is decremented by "1"

Technical Details

Return Value: No return value

More Examples

Example

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

document.getElementById("myRange").stepDown();
Try it Yourself »

< Input Range Object