Skip to content

Commit c63a5e1

Browse files
committed
Add delayed iframe HTML example
1 parent b8ffe54 commit c63a5e1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Diff for: assets/html/iframe-with-delay.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
<head>
4+
<style>
5+
6+
</style>
7+
</head>
8+
<body>
9+
<input type="text" id="text-outside-iframe">
10+
11+
<script>
12+
setTimeout(() => {
13+
var iframe = document.createElement('iframe');
14+
var html = '<body>Foo <input type="text" id="text-inside-iframe"> </body>';
15+
iframe.srcdoc = html;
16+
document.body.appendChild(iframe);
17+
18+
}, 3000);
19+
</script>
20+
</body>
21+
</html>
22+

0 commit comments

Comments
 (0)