how to check in body have iframe or not when window load javascript code example
Example: jquery check if iframe is loaded
$('#myIframe').on('load', function(){
//your code (will be called once iframe is done loading)
});
$('#myIframe').on('load', function(){
//your code (will be called once iframe is done loading)
});