How can redirect to another page automatically after few seconds in html only? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can redirect to another page automatically after few seconds in html only?

2nd Mar 2020, 6:13 AM
Mohammed Alkhassim Abrahim Hassan
3 Answers
0
Use setTimeout within script tag in html
2nd Mar 2020, 6:41 AM
A͢J
A͢J - avatar
+ 2
Use setTimeout (function () { window.location.href = "your_new_page_link"; }, 1000); where 1000 is 1 second.
2nd Mar 2020, 7:03 AM
A͢J
A͢J - avatar
0
OK I will search about it
2nd Mar 2020, 6:48 AM
Mohammed Alkhassim Abrahim Hassan