I have tried this and it just brings an empty space in console of my browser. How can can i get the height of my element.
var background = document.getElementById('bgimage');
console.log(background.style.height);
.background {
width: 100%;
height: 500vh;
}
<div class="section s1">
<div class="background" id="bgimage">
.......
</div>
</div>