mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
11 lines
332 B
HTML
11 lines
332 B
HTML
<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>
|