Javascript examples for DOM HTML Element:Input Time
Input Time stepUp() Method - Increment the minutes by 1 (default):
<!DOCTYPE html> <html> <body> Time: <input type="time" id="myTime" value="16:32:55"> <button onclick="myFunction()">Test</button> <script> function myFunction() {/*from www .ja va 2 s. c om*/ document.getElementById("myTime").stepUp(); } </script> </body> </html>