Μέθοδος Input Range stepDown()
Ορισμός και χρήση
stepDown()
Η μέθοδος μειώνει την τιμή του ελέγχου του滑块控件的.
Συμβουλή:Για να αυξήσετε την τιμή, χρησιμοποιήστε Μέθοδος stepUp().
Παράδειγμα
Παράδειγμα 1
Αποτελέσματα του κουμπιού μπρος 10
document.getElementById("myRange").stepDown(10);
Παράδειγμα 2
Αποτελέσματα του κουμπιού μπρος
document.getElementById("myRange").stepDown();
Syntax
rangeObject.stepDown(number)
Parameter Value
Parameter | Description |
---|---|
number |
Required. Specifies the amount by which the slider control value 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 to fully support this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 12.0 | Support | Support | Support |