Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js how to hide an image

function setImageVisible(id, visible) {
    var img = document.getElementById(id);
    img.style.visibility = (visible ? 'visible' : 'hidden');
}
 
PREVIOUS NEXT
Tagged: #js #hide #image
ADD COMMENT
Topic
Name
9+5 =