I have an image as follow:
<img id="imgId" src="img/cart.png" style="display: none"/>
When a button is clicked, it calls a JavaScript function to display the image
document.getElementById("imgId").style.display = "inline"
The image is displayed well but it does not show up when I go back from another page.
What I want is after displaying the image, it will be still there even I go to another page and back.
Any helps are appreciated.