remove img src in js code example Example: javascript remove src from img Click to copydocument.getElementById('tst').removeAttribute('src');