Copy codeThe Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd html 4.01 Transitional // EN" "http://www.w3.org/TR/html4/loose.dtd">
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = GBK">
<Title> 404 Not Found </title>
</Head>
<Body>
<H1> the specified page cannot be found <Span id = "totalSecond"> 3 </span> seconds later
</Body>
<Script language = "javascript" type = "text/javascript">
<! --
Var second = document. getElementById ('totalsecond'). textContent;
If (navigator. appName. indexOf ("Explorer")>-1) // determines whether the browser is an IE browser or a Firefox browser.
{
Second = document. getElementById ('totalsecond'). innerText;
} Else
{
Second = document. getElementById ('totalsecond'). textContent;
}
SetInterval ("redirect ()", 1000); // call the redirect () method once every 1 second
Function redirect ()
{
If (second <0)
{
Location. href = 'HTTP: // the website to jump ';
} Else
{
If (navigator. appName. indexOf ("Explorer")>-1)
{
Document. getElementById ('totalsecond'). innerText = second --;
} Else
{
Document. getElementById ('totalsecond'). textContent = second --;
}
}
}
-->
</Script>
</Html> </td>
</Tr>
</Table>