javascript ::after click event

It then notifies you, thus taking an "action" on the event. JavaScript Foundation; Web Development. The second parameter is the function to invoke when the event occurs. This example is just like the bubbling example we saw earlier, except that we have used the capture option: In this case, the order of messages is reversed: the event handler fires first, followed by the

event handler, followed by the