mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
28 lines
524 B
HTML
28 lines
524 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
:root {
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
}
|
|
|
|
body iframe {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
}
|
|
</style>
|
|
<script>
|
|
async function attachFrame(frameId, url) {
|
|
var frame = document.createElement('iframe');
|
|
frame.src = url;
|
|
frame.id = frameId;
|
|
document.body.appendChild(frame);
|
|
await new Promise(x => frame.onload = x);
|
|
return 'kazakh';
|
|
}
|
|
</script>
|
|
<iframe src='./two-frames.html' name='2frames'></iframe>
|
|
<iframe src='./frame.html' name='aframe'></iframe>
|