-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiframe1.html
More file actions
38 lines (22 loc) · 712 Bytes
/
iframe1.html
File metadata and controls
38 lines (22 loc) · 712 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Relationship between Iframe & Parent</title>
<meta name="author" content="Batuhan Kök - http://batuhan.me">
</head>
<body>
<div id="content" style="border: 2px solid red; height: 200px; text-align: center">
<br>
<br>
<b>here is the iframe1.html page (height: 200px)</b>
<br>
<a href="iframe2.html">go to iframe2.html</a>
</div>
<script type="text/javascript">
function windowHeight(){
return document.getElementById('content').clientHeight + 30;
}
</script>
</body>
</html>