Skip to content

Instantly share code, notes, and snippets.

@bisko
Created December 5, 2010 21:41
Show Gist options
  • Save bisko/729498 to your computer and use it in GitHub Desktop.
Save bisko/729498 to your computer and use it in GitHub Desktop.
Pretty bad way of skipping the first load of an iframe...
var hiddenIfr = document.getElementById('hiddeniframepopup');
if (hiddenIfr) {
hiddenIfr.onload = function() {
this.onload = function () {
ifr.innerHTML = this.contentDocument.body.innerHTML;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment