[Javascript] accessing event from setInterval function

Julien Royer eldebaran at gmail.com
Wed Mar 7 14:59:20 CST 2007


setInterval has nothing to do with event handlers.

Could you describe more precisely your need? Why do you need to access
an event object from your function?

On 3/7/07, Anthony Ettinger <anthony at chovy.com> wrote:
> Is there a way to access the event object from within the setInterval
> callback function?
>
> var myInterval = window.setInterval("doMyInterval();", 500);
>
> function doMyInterval ( e ) {
>     //event object is not passed here....how can I gain access to it?
>
> }



More information about the Javascript mailing list