JavaScript
Result
Run
License
window.addEventListener("load", function() { var elImg = document.createElement("img"); let attrSrc = document.createAttribute("src"); attrSrc.value = "http://resrc.devdic.com/img/bykind/alpha/150x135_flower.png"; elImg.setAttributeNode(attrSrc); document.body.appendChild(elImg); });
Console
expand_less
License
License
by DevDic
Close