summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/test/assets/frames/nested-frames.html
blob: de1987586ff3d4505f079d1a423514db31e9ba2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<style>
body {
    display: flex;
}

body iframe {
    flex-grow: 1;
    flex-shrink: 1;
}
::-webkit-scrollbar{
    display: none;
}
</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>