after loding an image in div js code example
Example: how to display image in div using id in html
document.getElementById('imageDiv')
.innerHTML = '<img src="imageName.png" />';
document.getElementById('imageDiv')
.innerHTML = '<img src="imageName.png" />';