I am trying to learn JavaScript and I am wondering whether JavaScript has a event listener just like ActionScript\'s ENTER_FRAME. Basically, I want this event listener to li
Nope. Not really. A good substitute would be setInterval or setTimeout:
setInterval
setTimeout
function doAllTheTime() { } function wrapper() { doAllTheTime(); setTimeout(wrapper, 40); } wrapper();
But even then, you're pretty limited, because you don't have access to any of the event object properties.