2017-06-17 21:27:51 +00:00
|
|
|
<style>
|
2024-02-02 16:25:17 +00:00
|
|
|
:root {
|
|
|
|
scrollbar-width: none;
|
|
|
|
}
|
|
|
|
|
2017-06-17 21:27:51 +00:00
|
|
|
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>
|
2019-02-06 21:49:14 +00:00
|
|
|
<iframe src='./two-frames.html' name='2frames'></iframe>
|
|
|
|
<iframe src='./frame.html' name='aframe'></iframe>
|