I have an Iframe containing a div tag with "firstHeadSection" id.
after iframe is loaded, I append this code to iframe:
<script>
$(window).on("resize", function(){
alert($("#firstHeadSection").height())
})
</script>
The Js code will be inserted but after I resize window, it alerts null.
JQuery is included in the iframe.
What should I do?