<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>browser_formdata_sample.html</title>
  </head>
  <body>
    <input id="txt" />
    <iframe id="iframe"></iframe>

    <script type="text/javascript">
      let isOuter = window == window.top;

      if (isOuter) {
        let iframe = document.getElementById("iframe");
        iframe.setAttribute("src", "https://example.com" + location.pathname);
      }
    </script>
  </body>
</html>
