本文实例为大家分享了js浏览器倒计时@R_872_404@面效果,供大家参考,具体内容如下
效果图:
@H_403_11@浏览器对象
<Meta http-equiv="Content-Type" content="text/html; charset=gb123"/>
操作成功
<script type="text/javascript">
var sec = document.getElementById("second");
var i = 5;
var timer = setInterval(function(){
i--;
sec.innerHTML = i;
if(i==1){
window.location.href = "//www.jb51.cc";
}
},1000);
function goBack(){
window.history.go(-1);
}