summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/test/assets/main-frame.html
blob: 0c50feff85828e8c903f4e272be9f859b35ffd5c (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-frame1.test';
    url.pathname = '/inner-frame1.html';
    iframe.src = url.toString();
    document.body.appendChild(iframe);
  }, false);
</script>