-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
47 lines (36 loc) · 1.24 KB
/
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
42
43
44
45
46
47
<html>
<head>
<style>
a {
font-size:14px;
display: block;
margin-bottom:20px;
}
</style>
<script language="Javascript" type="text/javascript" src="../window-opener.js"></script>
<script>
function nativeOpen() {
windowOpener.unWrap(); // call this to un wrap the native method
window.open('500px.html', '_blank', 'width=500px,height=500px');
windowOpener.wrap();// no re wrap it so we can text wrappedOpener below..
}
function openerOpen() {
windowOpener.open('500px.html', '_blank', 'width=500px,height=500px');
}
function wrappedOpener() {
window.open('500px.html', '_blank', 'width=500,height=500');
}
</script>
</head>
<body>
<a href="#" onClick="nativeOpen()">
Open 500px with native window.open
</a>
<a href="#" onClick="openerOpen()">
Open 500px with windowOpener
</a>
<a href="#" onClick="wrappedOpener()">
Open 500px with wrapped window.open using windowOpener
</a>
</body>
</html>