OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head></head> | |
3 <body> | |
4 <p>This page injects a srcdoc frame with a nested form iframe. | |
5 <div id="myDiv"></div> | |
6 <script> | |
7 var iframeHtml = | |
8 '<iframe srcdoc="<iframe src=\'form.html\'><\/iframe>"><\/iframe>'; | |
9 | |
10 // Create an iframe srcdoc with nested frame inside the preexisting div. | |
11 document.getElementById('myDiv').innerHTML = iframeHtml; | |
12 </script> | |
13 </body> | |
14 </html> | |
OLD | NEW |