Answers for "how to set image width and height dynamically in javascript"

0

how to set image width and height dynamically in javascript

document.addEventListener('DOMContentLoaded', function() {
  var image = document.getElementById("container");
  alert(`${image.width} x ${image.height}`);
}, false);
Posted by: Guest on November-18-2020

Code answers related to "how to set image width and height dynamically in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language