Показать изображение 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; }
TheTreeSee