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

content / test / data / navigation_controller / inject_iframe_srcdoc_with_nested_frame.html [blame]

<html>
<head></head>
<body>
  <p>This page injects a srcdoc frame with a nested form iframe.
  <div id="myDiv"></div>
  <script>
    var iframeHtml =
        '<iframe srcdoc="<iframe src=\'form.html\'><\/iframe>"><\/iframe>';

    // Create an iframe srcdoc with nested frame inside the preexisting div.
    document.getElementById('myDiv').innerHTML = iframeHtml;
  </script>
</body>
</html>