var parentEl = document.getElementById("id"), img = document.createElement("IMG"); img.src = "/image.jpg"; parentEl.appendChild(img);