JavaScript – Change the Height of Div
To change the height of a div using JavaScript, get reference to the div element, and assign required height value to the element.style.height
property.
Example
Conclusion
In this JavaScript Tutorial, we learned how to change the height of a div using JavaScript.