Horje
how to check if iframe is loaded Code Example
how to check if iframe is loaded
<script>
function checkIframeLoaded() {
    // Get a handle to the iframe element
    var iframe = document.getElementById('i_frame');
    var iframeDoc = iframe.contentDocument || iframe.contentWindow.document;

    // Check if loading is complete
    if (  iframeDoc.readyState  == 'complete' ) {
        //iframe.contentWindow.alert("Hello");
        iframe.contentWindow.onload = function(){
            alert("I am loaded");
        };
        // The loading is complete, call the function we want executed once the iframe is loaded
        afterLoading();
        return;
    } 

    // If we are here, it is not loaded. Set things up so we check   the status again in 100 milliseconds
    window.setTimeout(checkIframeLoaded, 100);
}

function afterLoading(){
    alert("I am here");
}
</script>

<body onload="checkIframeLoaded();"> 




Whatever

Related
flutter storage permission Code Example flutter storage permission Code Example
Could not connect to SMTP host. Code Example Could not connect to SMTP host. Code Example
scrcpy install Code Example scrcpy install Code Example
http error 500 nginx drupal Code Example http error 500 nginx drupal Code Example
batch input Code Example batch input Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7