I need to change the width and height of the image that will appear as a result of this code, how to get access to its properties?
var div = document.createElement("div"); div.className = 'image'; div.id = 'ImageArea'; div.style.display = 'block'; div.onclick = 'Hide()'; div.innerHTML = '<div class="pic"><img src="images/' + (i+1) + '.jpg"></div>'; document.body.appendChild(div);