Table of Contents Previous topic Next topic
GettingStarted->Event Handlers->Adding Event Handlers->Adding Handler and Registration Code
Now click on Insert and the outline event handler and the addEventListener call are added to the Javascript file. The addEventListener call registers the function afterStep as a handler for the afterstep event.
The afterstep event occurs after the simulation of each microcontroller instruction and so the function afterStep will be called after each microcontroller instruction is executed.