Input Range stepDown() Method

❮ Input Range Object

Example

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

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

Description

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
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.