Skip to content

Commit e77b5c5

Browse files
authored
Create TestPage.html
1 parent 5657744 commit e77b5c5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

TestPage.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Multi window</title>
6+
<script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
7+
<script src="Duplicate.js"></script>
8+
</head>
9+
<body>
10+
This is test page,<br/><a href="TestPage.html" target="_blank">Click here</a> to open another window
11+
<script type="text/javascript">
12+
$(document).ready(function () {
13+
if (window.IsDuplicate()) {
14+
alert("this is duplicate window\n\n closing...");
15+
window.close();
16+
}
17+
});
18+
</script>
19+
</body>
20+
</html>

0 commit comments

Comments
 (0)