本文实例为大家分享了js浏览器倒计时@R_595_404@面效果,供大家参考,具体内容如下
效果图:
操作成功
<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);
}