04R - DOM Custom Events

Define and Explain DOM Custom Events

DOM custom events are events that you define and create, outside of the pre-defined events that are built in.

Define and Explain How to Create Custom Events

Custom events are created using the CustomEvent constructor, which includes a text string for the name of the event, followed by an object relating any additional information needed to complete the event.

Explain Why DOM Custom Events Are Used

Custom events allow you to separate the code that you want to execute after another piece of code completes.

Summary of the Documentation

Custom events allow you to create events outside of the events that are available by default, tailoring your event to the specific needs of your site.