SyntaxFix
Write A Post
Hire A Developer
Questions
You can do this:
<img src="src/to/your/img.jpg" id="yourImgId"/>
document.getElementById("yourImgId").style.height = "heightpx";
The same you can do with the width.