javascript test if frame is loaded 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)
});