-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path28.html
33 lines (23 loc) · 887 Bytes
/
28.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
<html>
<head>
</head>
<body>
<button onclick="window1()">Get Outer browser area</button>
<button onclick="window2()">Get Inner browser area</button>
<button onclick="history1()">Get History browser area</button>
<script type="text/javascript">
function window2()
{
alert("Height = "+window.innerHeight+"& Width = "+window.innerWidth);
}
function window1()
{
alert("Height = "+window.outerHeight+"& Width = "+window.outerWidth);
}
function history1()
{
alert("History length = "+window.History.length);
}
</script>
</body>
</html>