Events

Like most programming languages, JavaScript has the ability to respond to "events" that happen, such as a mouse being clicked or an input form being completed.