Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find div height in javascript

//includes margin and padding
document.getElementById('myDiv').offsetHeight;
//without margin and padding
document.getElementById('myDiv').clientHeight;
 
PREVIOUS NEXT
Tagged: #find #div #height #javascript
ADD COMMENT
Topic
Name
9+5 =