HTML頭標(biāo)簽meta實(shí)現(xiàn)refresh重新定向

字號(hào):


    代碼如下:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta http-equiv="Refresh"
    content="5;url=http://www.baidu.com">
    </head>
    <body>
    <p>
    對(duì)不起。我們已經(jīng)搬家了。您的 URL 是
    <a >http://www.w3school.com.cn</a>
    </p>
    <p>您將在 5 秒內(nèi)被重定向到新的地址。</p>
    <p>如果超過 5 秒后您仍然看到本消息,請(qǐng)點(diǎn)擊上面的的鏈接。</p>
    </body>
    </html>