Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

show image javascript

HTML:
<img id="theImage" src="yourImage.png">
<a id="showImage">Show image</a>

JavaScript:
document.getElementById("showImage").onclick = function() {
    document.getElementById("theImage").style.visibility = "visible";
}

CSS:
#theImage { visibility: hidden; }
 
PREVIOUS NEXT
Tagged: #show #image #javascript
ADD COMMENT
Topic
Name
7+3 =