how to display image in div using id in html
snippet in html

how to display image in div using id in html

user7236

document.getElementById('imageDiv')
    .innerHTML = '<img src="imageName.png" />';