There is an iframe in which the page of another resource is loaded, but which can be prohibited to load into the iframe due to security-content-policy or x-frame-origin, etc. How do I know that it did not boot for any reason?

    2 answers 2

    Try

    var iframe = document.getElementsByTagName('iframe')[0];//или getElementsBy() iframe.onload = function() { alert( "iframe onload" ); }; 

    Here is some more information on this topic - m. will help

       $('iframe').load(function(){ $(this).contents().html("Ы!"); });