Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get parent element height javascript

function myFunction()
{
    var x = document.getElementById("myLI").parentNode.offsetHeight;
    document.getElementById("demo").innerHTML = x;
}
 
PREVIOUS NEXT
Tagged: #javascript #parent #element #height #javascript
ADD COMMENT
Topic
Name
5+9 =