I have an HTML page with an image that I set to be invisible by CSS visibility: hidden
. I want to make a link called \"Show image\", so that when I click on it,
It's pretty simple.
HTML:
Show image
JavaScript:
document.getElementById("showImage").onclick = function() {
document.getElementById("theImage").style.visibility = "visible";
}
CSS:
#theImage { visibility: hidden; }