change div height javascript code example
Example 1: javascript set div height
document.getElementById("myBtn").style.height = "50px";
Example 2: find div height in javascript
//includes margin and padding
document.getElementById('myDiv').offsetHeight;
//without margin and padding
document.getElementById('myDiv').clientHeight;