var XXX = setTimeout("要执行的脚本",等待时间);
clearTimeout(XXX);//取消等待

解决方案 »

  1.   

    一种是使用记时器,
    一种是使用
    <meta http-equiv="refresh" content="15;URL=www.csdn.net" />
      

  2.   

    <script language="javascript">
    var thetimeout;function window.onload()
    {
        thetimeout = setTimeout("jumptoother()",15000);
    }function document.click()
    {
        clearTimeout(thetimeout);
        thetimeout = setTimeout("jumptoother()",15000);
    }function jumptoother()
    {
        top.location = "其他连接地址";
    }
    </script>
      

  3.   

    手快写错了 function document.onclick()