how to delete img from url in javascript code example Example: javascript remove src from img document.getElementById('tst').removeAttribute('src');