Answers for "html css set height to width"

7

javascript set div height

document.getElementById("myBtn").style.height = "50px";
Posted by: Guest on February-13-2020
1

javascript get image width and height

var img = new Image();
img.onload = function() {
  alert(this.width + 'x' + this.height);
}
img.src = 'http://www.google.com/intl/en_ALL/images/logo.gif';
Posted by: Guest on March-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language