- May 26, 2016
- 18
- 0
- 6
Third time posting the same thread gets an official warning.
Having following code
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
Code:
<iframe id="myframe" src="..."></iframe>
<script>
document.getElementById('myframe').onload = function() {
alert('myframe is loaded');
};
</script>
Third thread on this topic closed -- Programming Moderator Ken g6
Last edited by a moderator: