Skip to content

Glossary: JavaScript in the Browser

CustomEvent

Also written: dispatchEvent, detail

An event with a name of your choosing and a detail property that carries data. The quantity picker fires quantitychange with dispatchEvent so a parent can listen without knowing about carts.

Where the book teaches it

Related terms

ComponentBubblingEvent