1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17

content / test / data / page_with_blank_iframe_tree.html [blame]

<html>
<head>
<script>
function makeDeeper() {
  // Create an about:blank iframe nested inside the existing #f1 about:blank
  // iframe.
  var iframe = document.getElementById("f1");
  var grandKid = iframe.contentDocument.createElement("iframe");
  iframe.contentDocument.body.appendChild(grandKid);
}
</script>
</head>
<body onload="makeDeeper()">
  <p>This page has an iframe. Yay for iframes!
  <p><iframe src="about:blank" id="f1"></iframe>
</body>
</html>