1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<!DOCTYPE html> <html> <head> <script> function addFrame(url, sandbox) { var frame = document.createElement('iframe'); frame.src = url; if (sandbox) frame.sandbox = sandbox; document.body.appendChild(frame); } </script> </head> <body> This page has one cross-site iframe. <iframe id="child0" name="child-name-0" src="/cross-site/baz.com/title1.html"></iframe> </body> </html>