Home >Web Front-end >HTML Tutorial >Let the webpage redirect to other pages after opening it for a few seconds_HTML/Xhtml_Webpage Production
Just add the following code to achieve it.
The first method: use Meta
Usage:
The first statement is to stay for 30 seconds and automatically refresh, and the second statement is to stay for 5 seconds and redirect to sc.jb51.net. Use respectively to achieve automatic refresh or automatic steering functions.
Second type: js implementation
setTimeout(function(){window.location.href = 'http://sc.jb51.net';},2000)
The third type of js code with countdown