Is there a way to capture when the contents of an iframe have fully loaded from the parent page?
+2
A:
Iframe elements have an onload event for that.
<iframe id="myframe" src="..."></iframe>
<script>
document.getElementById("myframe").onload = function() {
alert("myframe is loaded");
};
</script>
galambalazs
2010-06-29 16:57:53
Thanks, this does exactly what I needed!
ferrari fan
2010-07-02 15:00:03