Skip to content

Instantly share code, notes, and snippets.

@NeoCat
Created February 6, 2011 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeoCat/813339 to your computer and use it in GitHub Desktop.
Save NeoCat/813339 to your computer and use it in GitHub Desktop.
Test for double onload of iframe in Opera with oAutoPagerize.js
<html>
<head>
<script>
function test() {
var ifr = document.createElement("iframe");
document.body.appendChild(ifr);
ifr.onload = function(){ document.getElementById("log").innerHTML += "onload " }
ifr.contentWindow.document.write('');
ifr.contentWindow.document.close();
};
</script>
</head>
<body>
<div id="log"></div>
<script>
test(log);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment