Studying how to envolve websites with a global event-ready data object.
Vanilla JavaScript.
There are two scripts
in the project: customEvent.js
and customEventWithData.js
.
First one declares an Event called myHappyCustomEvent which is dispatched on every click in DOM.
Second one declares en Event called withCustomData which is dispatched on every click in the button. This event owns custom data set in detail
property (check console to find it).
- 🇺🇸 English
- 🇪🇸 Español 🔧 Not available yet
Made with JavaScript and a lot of ❤️