How to add onlick wait to link | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add onlick wait to link

I want to add time function to specific link. For example this link <a href="https://google.com" >Click</a> If someone click the above link, the link should be open after 3 seconds

5th Oct 2019, 1:57 PM
Uzair Malim
Uzair Malim - avatar
2 Answers
+ 3
This can be done like this. https://code.sololearn.com/WE32tep93kPc
5th Oct 2019, 3:42 PM
Anthony Johnson
Anthony Johnson - avatar
+ 1
You can't give time to open this link because it's a direct link. To do that you can create a JavaScript function where you can give time using setTimeout function to open any link. And call that function on any tag using onclick event
5th Oct 2019, 2:22 PM
A͢J
A͢J - avatar