I'm trying to figure out my content div's height when overflowed with content thanks to the nifty .scrollHeight javascript function. However, when I alert this height I'm getting an "undefined" result. I'm fairly new to javascript so I might have made some really dumb mistake:
http://codepen.io/anon/pen/GJOVvd
basically looks like this in my html (because Stack Overflow doesn't let me just post codepen links):
<script>var intElemScrollHeight = document.getElementsByClassName("content").scrollHeight;
alert(intElemScrollHeight + " px");
</script>
I made a quick codepen which really resembles my problem, except that the height of my content container in my actual project depends on the height of the header, but that changes naught I believe, as I'm still getting that "undefined".