How do I make a timer for html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I make a timer for html

I want to know how to make a timer for html so I can play a joke on my friend. I want a photo of pepe to appear 10 seconds after my friend opens the file.

1st Feb 2018, 10:31 PM
Lhfhv
2 Answers
+ 4
There is no direct way to do it. You will have to use JavaScript along with html. You can always Google and you will find many examples related to timer.
1st Feb 2018, 10:55 PM
Samay Sharma
+ 4
I hope this helps. Just change 3000 to 10000 for 10 sec. https://code.sololearn.com/W35IssAf7pwB/?ref=app
1st Feb 2018, 11:02 PM
Samay Sharma