JSFiddle - React, Tailwind, and code Playground
by marcgrabow
HTML
<div id="result"></div>
<div contenteditable=true>
enter line breaks to change document height
<br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/>
</div>
JavaScript
var refreshDocHeight = function(){
var h = $(document).height();
$('#result').html("Document height: " + h);
};
window.setInterval(refreshDocHeight, 200);