cara mengubah ukuran gambar js

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