appendChild image not working in IE

Saturday, May 3, 2014

function openOnImageClick(event) { //alert("Hiiii"); var target = event.target || event.srcElement; // IE console.log(target); console.log(target.id); var img = document.createElement('img'); img.setAttribute('src', target.src); img.setAttribute('width', '200'); img.setAttribute('height', '150'); document.getElementById("frame").appendChild(img); }















http://ift.tt/1fDn2ba