summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/siteIdentity/open-self-from-frame.html
blob: 17d0cf56ef9315679e3969dc95495cdd1e323ad8 (plain)
1
2
3
4
5
6
<iframe src="about:blank"></iframe>
<script>
  document.querySelector("iframe").contentDocument.write(
    `<button onclick="window.open().document.write('Hi')">click me!</button>`
    );
</script>