Events in JavaScript

An event is something which happens as a result of some kind of action. For instance, when you click a button a message pops up on the screen saying that you have just clicked a button. By clicking the button you took an action. The event of clicking the button was detected by your browser. The event handler for that button click displayed a message on your screen. Use the buttons below to see events handled by your browser.