image size in javascript code example
Example 1: how to change size of image js
var image = document.getElementById('id');
image.style.width='imgWidth';
image.style.height='imgHeight';
Example 2: javascript get width of image
image.width
var image = document.getElementById('id');
image.style.width='imgWidth';
image.style.height='imgHeight';
image.width