[Html] Iframe onload and the main site.

Status
Not open for further replies.

MulliGan81

Junior Member
May 26, 2016
18
0
6
Having following code

HTML:
<iframe id="myframe" src="..."></iframe>
 
    <script>
    document.getElementById('myframe').onload = function() {
      alert('myframe is loaded');
    };
    </script>
<iframe id="myframe" src="..."></iframe>

<script>
document.getElementById('myframe').onload = function() {
alert('myframe is loaded');
};
</script>
Is it possible that the iframe finish loading before we assign onload handler in the script?

Duplicate thread locked -- Programming Moderator Ken g6
 
Last edited by a moderator:
Status
Not open for further replies.