find div height in javascript
snippet in javascript

javascript get element width

user5326

var width = document.getElementById('myID').offsetWidth;//includes margin,border,padding
var height = document.getElementById('myID'). offsetHeight;//includes margin,border,padding

find div height in javascript

user6767

//includes margin and padding
document.getElementById('myDiv').offsetHeight;
//without margin and padding
document.getElementById('myDiv').clientHeight;