-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (37 loc) · 814 Bytes
/
index.html
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!doctype html>
<head>
<meta charset="utf-8">
<title>Test Iframe</title>
<style>
iframe {
height: 600px;
}
.static-text {
display: inline-block;
}
iframe, .static-text {
width: 350px;
}
</style>
<script>
'use strict';
(function() {
var div = document.createElement('DIV');
var html = 'x<iframe src="resize-iframe.html"></iframe>';
div.innerHTML = html;
var ifr = div.lastChild;
window.onload = function() {
document.body.appendChild(ifr);
};
})();
</script>
</head>
<span>
Outer iframes src:
<a href="resize-iframe.html" target="blank">resize-iframe.html</a>
</span>
<p>
<span class="static-text">Static outer iframe</span>
<span>Dinamic outer iframe</span>
</p>
<iframe src="resize-iframe.html"></iframe>