Javascript Get Height

Javascript Get Height - Nov 30, 2019 at 10:04 element.style.height refers to inline style only. - connexo Nov 30, 2019 at 15:12 Add a comment 3 Answers Sorted by: 2 Use offsetHeight: var background = document.getElementById ('bgimage'); var h = Math.max (document.documentElement.clientHeight, window.innerHeight || 0); console.log (background.offsetHeight*100/h); In this article we will see How to get the div height using Javascript We can do this by following ways Using the offsetHeight property Using the clientHeight property Using getBoundingClientRect Method

Javascript Get Height

Javascript Get Height

Javascript Get Height

Set the height of a