summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/test/assets/inner-frame1.html
blob: 00f19ec166b19a87142ffc9e24e8d34a7785aae8 (plain)
1
2
3
4
5
6
7
8
9
10
<script>
  window.addEventListener('DOMContentLoaded', () => {
    const iframe = document.createElement('iframe');
    const url = new URL(location.href);
    url.hostname = 'inner-frame2.test';
    url.pathname = '/inner-frame2.html';
    iframe.src = url.toString();
    document.body.appendChild(iframe);
  }, false);
</script>