browser_formdata_sample.html (469B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <title>browser_formdata_sample.html</title> 6 </head> 7 <body> 8 <input id="txt" /> 9 <iframe id="iframe"></iframe> 10 11 <script type="text/javascript"> 12 let isOuter = window == window.top; 13 14 if (isOuter) { 15 let iframe = document.getElementById("iframe"); 16 iframe.setAttribute("src", "https://example.com" + location.pathname); 17 } 18 </script> 19 </body> 20 </html>