JSFiddle - React, Tailwind, and code Playground
by Bangali Babu
HTML
<script src="https://code.jquery.com/jquery.min.js"></script>
<iframe src="https://noc2spam.github.io/embed.html?ddd" style="display:block; border:0; width:300px; height:200px; overflow:scroll">
</iframe>
<button id="get_result" type="button">
Calculate div distance from window top
</button>
<div id="result">
</div>
JavaScript
jQuery(function(){
$('#get_result').click(function(){
printResult();
});
});
var printResult = function(){
$('#result').html('div distance from parent window is ' );
}