Here to provide you with a useful JS write the countdown page, like some sites on the point of submission after the countdown page similar.
The page code is simple, the direct copy can run, the page can beautify itself.
<!--This defines the countdown start numerical-->
<span id= "Totalsecond" >5</span>
<!--definition js variable and method-->
< Script language= "javascript" type= "Text/javascript" >
var second = document.getElementById (' Totalsecond '). textcontent;
if (Navigator.appName.indexOf ("explorer") >-1)
{
second = document.getElementById (' Totalsecond '). innertext;
} else
{
second = document.getElementById (' Totalsecond '). textcontent;
}
SetInterval ("redirect ()", 1000);
function Redirect ()
{
if (second < 0)
{
<!--define the countdown to jump page-->
location.href = ' Default.aspx ';
} else
{
if (navigator.appName.indexOf ("explorer") >-1)
{
document.getElementById (' Totalsecond '). innertext = second--;
} else
{
document.getElementById (' Totalsecond '). textcontent = second--;
}}} </script>
The above is the entire content of this article, I hope the content of this article for everyone's study or work can bring some help, but also hope that a lot of support cloud Habitat community!