<img src="" alt="First" onclick="disappear(this)"/> <img src="" alt="Second" onclick="disappear(this)"/> <img src="" alt="Third" onclick="disappear(this)"/> <script> function disappear(img) { img.parentNode.removeChild(img); } </script>
img.remove();