2010-09-13 17:15:59 +00:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html dir="ltr" xml:lang="en-US" lang="en-US">
|
|
|
|
<head>
|
2012-03-24 11:34:42 +00:00
|
|
|
<meta charset="utf-8">
|
2010-09-13 17:15:59 +00:00
|
|
|
<script>
|
2010-11-16 21:34:53 +00:00
|
|
|
var _console = {
|
2010-09-13 17:15:59 +00:00
|
|
|
foo: "bar"
|
|
|
|
}
|
|
|
|
|
2010-11-16 21:34:53 +00:00
|
|
|
window.console = _console;
|
|
|
|
|
|
|
|
function loadIFrame() {
|
2010-09-13 17:15:59 +00:00
|
|
|
var iframe = document.body.querySelector("iframe");
|
|
|
|
iframe.addEventListener("load", function() {
|
|
|
|
iframe.removeEventListener("load", arguments.callee, true);
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
iframe.setAttribute("src", "test-console.html");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<iframe></iframe>
|
|
|
|
</body>
|