Styling a image in js without the img tag

I mean something like this :

document.getElementById("image-div").innerHTML="<img src=''>";

How we can change the width/height of the image in js? I tried but nothing.
Is changing the id(container) but the image size still the same.

Leave a Comment