3 Replies Latest reply on Nov 23, 2006 1:33 PM by kglad

    passing parameters to a function in setInterval()

    Level 7
      If I wanted to set inteval for a function requiring a parameter, how do I
      pass the parameter?
      If I do like this:
      var myInterval =setInterval(f(p),2000);
      it causes the functuion to execute immediately