html5秒钟后自动跳转界面
html自动跳转界面:
<body>
<h4 class="refresh_text">页面没有找到,<strong id="second_show">5</strong>秒钟之后将带您进入首页。</h4>
<script type="text/javascript">
var timeout = 5;
function showError() {
document.getElementById("second_show").innerHTML = timeout;
timeout--;
if (timeout == 0) {
window.location.href = "http://www.baidu.com";
} else {
setTimeout("showError()", 1000);
}
}
showError();
</script>
</body>
来自:[黑凤梨的博客](http://hanbaojian.top:8888/)