如果是id=setTimeout("*",1000)的话,clearTimeout(id);

解决方案 »

  1.   

    有时需要return false或return true
      

  2.   

    大家注意了,不是这样的。我的内容提交了,由于网络速度问题,昨天没成功。
    我有两个Frame:A B
    Frame B中有函数BFunction(),Settimeout让她循环执行,请问如何才能在Frame A中停止Frame B中的BFunction()函数的执行。
      

  3.   

    var timer=null
    function BFounction()
    {
      timer=setTimeout("BFounction()",1000)
    }假设B frame的名字是B;外面用clearTimeout(B.timer)就ok
      

  4.   

    Frame B:var StopFunction=true;
    function BFounction()
    {
     if(StopFunction)
      timer=setTimeout("BFounction()",1000)
    }Frame A<button onclick="top.FrameB.execScript('StopFunction=false')">停止</button>