0
How we check If image clicked in JS
I am loading 3 images on my screen and I want to make it when the user click any image a message will show up under it. How I can do something like: if(image is clicked ){ print the message } All what I am asking for is how I can write "image is clicked" ?
1 Answer
+ 2
You have to use events.. dom events..
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onclick