I have an image that I want to link to a URL. I have used javascript. code after running the code I want to display this image and when I click on it I want to open some other page which is linked to this image via url.
what should I do?
I tried it, but it didn't work.
Code(I took this from Stack Overflow)
I hope this simple code snippet helps you.