+ 6

How to add timer using javascript?

I want to make a 10s timer.I want the code to end if no response is made by the user within 10s.Please help someone.

19th Jul 2018, 9:18 AM
Aanisha Bhattacharyya
Aanisha Bhattacharyya - avatar
2 Antworten
+ 4
What you are searching for is a countdown that does something when it runs out. Google is your friend here. https://www.google.si/search?ie=UTF-8&q=js+countdown So here's what I managed to put together from what I've found https://code.sololearn.com/W4t1TxUFOPwQ/?ref=app
19th Jul 2018, 9:45 AM
Tim Thuma
Tim Thuma - avatar
+ 2
Thanks Tim Thuma
19th Jul 2018, 9:48 AM
Aanisha Bhattacharyya
Aanisha Bhattacharyya - avatar