I want to load another HTML page after a specific amount of time

This question already has an answer here:

  • How do I redirect to another webpage? 67 answers

  • <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

    上一篇: 如何使用JavaScript进行页面重定向?

    下一篇: 我想在特定时间后加载另一个HTML页面