入力時間stepDown()メソッド
例
時間フィールドの値を10分デクリメントします。
document.getElementById("myTime").stepDown(10);
定義と使用法
stepDown()メソッドは、時間フィールドの値を指定された数だけデクリメントします。
このメソッドは、MINUTESにのみ影響します(時間、秒、またはミリ秒には影響しません)。
ヒント:値をインクリメントするには、stepUp()メソッドを使用します。
ブラウザのサポート
Method | |||||
---|---|---|---|---|---|
stepDown() | Yes | 12.0 | Not supported | Yes | Yes |
構文
timeObject.stepDown(number)
パラメータ値
Parameter | Description |
---|---|
number | Required. Specifies the amount of minutes the time field should decrease. If omitted, the minutes are decremented by "1" |
技術的な詳細
戻り値: | 戻り値なし |
---|
その他の例
例
分を1デクリメントします(デフォルト):
document.getElementById("myTime").stepDown();
❮入力時間オブジェクト