Solution:
If you are using JavaScript then it is an easy way just put the onClick()
event on the image – (onClick
is an event that makes anything happen by clicking that desired button or image or anything).
If You want to Show some text with respect to the image then just use the text content inside of OnClick()
then only it will be executed.