倒计时器?
你怎么做倒数计时器?
当用户加载页面时,时钟开始倒计时,它到达时间,它将浏览器重定向到新页面。
发现这一点,它没有太大用处。 http://encosia.com/2007/07/25/display-data-updates-in-real-time-with-ajax/
像这样的东西?
可能最简单的方法是使用Timer类 。
用纯JavaScript你可以这样做
window.onload=function(){ // makes sure the dom is ready setTimeout('function(){document.location = "http://www.google.com"}', 10000) // redirects you to google after 10 seconds }
When this counter reaches 0, you will be redirected to wherever. 10