I have a problem with javascript little bit, I want to replace img tag with iframe using javascript in my webpage.
I have tried making script for it from external javascript source but couldn't solve this problem.
<script>
let im = document.getElementById('image');
im.style.display = "none";
im.innerHTML = "<iframe src='http://exampleinthe.io/mage.jpg>" + "</iframe>";
</script>
<img src="image.jpg" id="image">
Nothing shows in webpage.