Is there a way to resize images using javascript? I attempted the following:
var images = document.getElementByTagName('img')
images.max_width = '100px'
images.max_height = '100px'
Unfortunately, it did not have the desired effect. I then tried document.images
instead of
document.getElementByTagName('img')
, but that also did not work.
In addition, I am hoping to avoid resizing the images with CSS. Any suggestions?
Thank you.