We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5657744 commit e77b5c5Copy full SHA for e77b5c5
TestPage.html
@@ -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