how to change size of image js

JavaScript
var image = document.getElementById('id');
image.style.width='imgWidth';
image.style.height='imgHeight';
Source

Also in JavaScript: