how to remove current image src and add new using js code example Example: javascript remove src from img document.getElementById('tst').removeAttribute('src');