Source code

Revision control

Copy as Markdown

Other Tools

<html>
<head>
<script>
function nestedIframeLoaded() {
var tf = document.getElementById("testframe");
var innerf = tf.contentDocument.getElementsByTagName("iframe")[0];
if (!innerf.contentDocument.documentURI.includes("frame0")) {
return;
}
innerf.onload = null;
innerf.src = "about:blank";
var d = innerf.contentDocument;
d.open();
d.write("test");
d.close();
opener.is(window.history.length, 1, "Unexpected history length");
opener.finishTest();
}
</script>
</head>
<body>
<iframe id="testframe" src="file_nested_frames_innerframe.html" onload="frameLoaded()"></iframe>
<script>
</script>
</body>
</html>