Can anyone tell me how to do an OnClick event in HTML, I got the button, but my idiotic brain can’t debug anything beyond Scratch…

Oct 6, 2021, 2:32 PM
0 0 2

comments (single view)

your_element.addEventListener("click", (event) => {
console.log("oh my god guys");
});

thanks lol

View all comments