Input Time stepDown() Method
Definition and Usage
stepDown()
The method decreases the value of the time field by the specified number.
This method only affects minutes (not hours, seconds, or milliseconds).
Tip:To increase the value, please use stepUp() method.
Instance
Example 1
Decrease the value of the time field by 10 minutes:
document.getElementById("myTime").stepDown(10);
Example 2
Subtract 1 minute (default):
document.getElementById("myTime").stepDown();
Syntax
timeObject.stepDown(number)
Parameter Value
Parameter | Description |
---|---|
number |
Required. Specifies the number of minutes to be reduced in the time field. If omitted, the minutes are 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 |
Supported | 12.0 | Not Supported | Supported | Supported |