Js countdown jump example after a few seconds

  • 2020-03-30 01:07:06
  • OfStack

<title> Error! ~~~</title> 
<link href="css/login1.css" mce_href="css/login1.css" rel="stylesheet" type="text/css" /> 
<script language="javascript" type="text/javascript"> 
var i = 5; 
var intervalid; 
intervalid = setInterval("fun()", 1000); 
function fun() { 
if (i == 0) { 
window.location.href = "../index.html"; 
document.getElementById("mes").innerHTML = i; 
<div id="errorfrm"> 
<h3> Error! ~~~</h3> 
<div id="error"> 
<img src="images/error.gif" mce_src="images/error.gif" alt="" /> 
<p> System error, please contact the administrator! </p> 
<p> Will be in  <span id="mes">5</span>  Return to home page in seconds! </p> 


Related articles: