Reputation: 1229
Is there a way to trigger a function when an iframe
on the same page is loaded completely.
Upvotes: 1
Views: 59
Reputation: 5055
Try the onload
Event
Example:
document.getElementById('ifrm').onload = function() {
// put your code here
}
Upvotes: 2