在这段代码中是否有可能在完成计时器时自动重定向到某个特定页面。
<blink>
var timestatus = 1;
function time_dec() {
time_left--;
document.getElementById('countdown').innerHTML = time_left;
if (time_left == 0) {
clearInterval(cinterval);
}
}
function resumetime() {
//time_left = 50;
clearInterval(cinterval);
cinterval = setInterval('time_dec()', 1000);
}
function defaultstart() {
time_left = 50;
clearInterval(cinterval);
cinterval = setInterval('time_dec()', 1000);
}
defaultstart();
</script>
</head>
<body>
<span id="countdown">50</span>.
<input type="button" value="stop" id="stopbutton" onclick="stopstarttime()">
</body>
</html>
</blink>