Take a look at my code snippet below:
<a href="image_link1">
<img src="image_link1"></img>
</a>
I am facing a challenge where I want the image link to be the same as the href (so when the image is clicked, it opens in a popup of the same image). However, I do not want to directly use "image_link1" in the href attribute. I am looking for suggestions or ideas on how to achieve this. Feel free to provide solutions even if they involve using JavaScript.