Created
February 6, 2011 12:29
-
-
Save NeoCat/813339 to your computer and use it in GitHub Desktop.
Test for double onload of iframe in Opera with oAutoPagerize.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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