mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
12 lines
343 B
HTML
12 lines
343 B
HTML
<!DOCTYPE html>
|
|
<script>
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
const iframe = document.createElement('iframe');
|
|
const url = new URL(location.href);
|
|
url.hostname = 'domain2.test';
|
|
url.pathname = '/inner-frame1.html';
|
|
iframe.src = url.toString();
|
|
document.body.appendChild(iframe);
|
|
}, false);
|
|
</script>
|