Is it possible that the iframe finish loading before we assign onload handler in the script?

Status
Not open for further replies.

MulliGan81

Junior Member
May 26, 2016
18
0
6
Third time posting the same thread gets an official warning.
Having following code
Code:
<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?

Third thread on this topic closed -- Programming Moderator Ken g6
 
Last edited by a moderator:
Status
Not open for further replies.