javascript remove images from page src code example Example: javascript remove src from img document.getElementById('tst').removeAttribute('src');