I want to load another HTML page after a specific amount of time
This question already has an answer here:
<script>setTimeout(function(){window.location.href='form2.html'},5000);</script>
而对于主页只添加'/'
<script>setTimeout(function(){window.location.href="/"},3000);</script>
<meta http-equiv="refresh" content="5;URL='form2.html'">
使用此JavaScript代码:
<script>
setTimeout(function(){
window.location.href = 'form2.html';
}, 5000);
</script>
链接地址: http://www.djcxy.com/p/1940.html
下一篇: 我想在特定时间后加载另一个HTML页面