Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head></head> | |
| 3 <body> | |
| 4 <p>This page injects an inner frame into an injected blank iframe. | |
|
alexmos
2016/10/21 06:34:16
nit: s/blank/srcdoc/? Also, the page really injec
Charlie Reis
2016/10/21 07:34:30
Done.
| |
| 5 <div id="myDiv"></div> | |
| 6 <script> | |
| 7 var iframeHtml = | |
| 8 '<iframe srcdoc="<iframe src=\'form.html\' id=\'outer\'>' + | |
|
alexmos
2016/10/21 06:34:16
nit: remove "outer", as it's unused here? Or rena
Charlie Reis
2016/10/21 07:34:30
Done.
| |
| 9 '<\/iframe>"><\/iframe>'; | |
| 10 | |
| 11 // Create an iframe srcdoc with nested frame inside the preexisting div. | |
| 12 document.getElementById('myDiv').innerHTML = iframeHtml; | |
| 13 </script> | |
| 14 </body> | |
| 15 </html> | |
| OLD | NEW |