showing results for - "how to set image width and height dynamically in javascript"
Felix
01 Feb 2018
1document.addEventListener('DOMContentLoaded', function() {
2  var image = document.getElementById("container");
3  alert(`${image.width} x ${image.height}`);
4}, false);
5