summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_formdata_sample.html
blob: d469f5751eef897669a5c61a86dcfd089c625f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!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>