Abu Sayed
Musician | Singer | Lyricist | Composer | Music Producer | Web | Game | XR & Blockchain Developer
Tag Archives: windowevent
Do not use window.occasion

Suppose you will have the next HTML and JavaScript: <button id=”btn”>Click on me</button> Enter fullscreen modeExit fullscreen mode let myBtn = doc.querySelector(“#btn”); myBtn.addEventListener(“click on”, () => { console.log(occasion); }); Enter fullscreen modeExit fullscreen mode What do you suppose clicking on the button will occur? If you happen to suppose it is not going to work,…