Here is the image code I have:
<img id="imgId" src="img/cart.png" style="display: none"/>
After clicking a button, it triggers a JavaScript function to show the image
document.getElementById("imgId").style.display = "inline"
The image displays properly, but when I navigate back from another page, it disappears.
What I need is for the image to remain visible even after going to another page and returning.
Any assistance on this issue would be greatly appreciated.