How we check If image clicked in JS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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" ?

5th Nov 2020, 5:44 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
1 Answer
5th Nov 2020, 5:52 PM
Steve Sajeev
Steve Sajeev - avatar