フォックスに対応して何秒後にページをジャンプしますか?

1168 ワード

<script>
var t = 3;
setInterval("testTime()", 1000); // 1
function testTime() {
if (t == 0) {
window.location= http://www.qq.com;
Window.clearInterval();
} else {
if(navigator.appName.indexOf("Explorer") > -1){
document.getElementById('view').innerHTML=t;
} else{
document.getElementById('view').textContent = t;
}
t--; //
}
}
</script>