- May 26, 2016
- 18
- 0
- 6
Having following code
Duplicate thread locked -- Programming Moderator Ken g6
HTML:
<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?<iframe id="myframe" src="..."></iframe>
<script>
document.getElementById('myframe').onload = function() {
alert('myframe is loaded');
};
</script>
Duplicate thread locked -- Programming Moderator Ken g6
Last edited by a moderator: