- 1
How to make a timer
2 Respostas
+ 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>
+ 1
one of the examples of timer function.