我想在特定时间后加载另一个HTML页面
这个问题在这里已经有了答案:
<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/1939.html
上一篇: I want to load another HTML page after a specific amount of time
下一篇: jQuery location href