- 1

How to make a timer

19th Nov 2016, 1:40 AM
kenneth ruben
2 ответов
+ 1
<!DOCTYPE html> <html> <body> wait for 3 seconds. <button onclick="setTimeout(myFunction, 3000)">Try it</button> <script> function myFunction() {     alert('Hello'); } </script> </body> </html>
22nd Nov 2016, 4:00 PM
Hemant Rana
Hemant Rana - avatar
+ 1
one of the examples of timer function.
22nd Nov 2016, 4:01 PM
Hemant Rana
Hemant Rana - avatar