<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div>
<h2>提交成功</h2>
<a href="http://www.example.com">
<span id="seconds">
3
</span>秒后系统会自动跳转,也可以单击此链接跳</a>
</div>
<script>
function tinming(secs,url){
var seconds =document.getElementById('seconds');
seconds.innerHTML=--secs;
if(secs>0){
setTimeout('timing('+secs+',\''+url+'\')',1000);
}else{
location.href =url;
}
};
timing(3,'http://www.example.com');
</script>
</body>
</html>
到时跳转
最新推荐文章于 2022-06-30 18:30:43 发布