Skip to content

Commit 967b338

Browse files
authored
Update README.md
1 parent e77b5c5 commit 967b338

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
# jquery-duplicatewindow
22
Not allow user to open website in multiple windows
3+
4+
jQuery plugin to check if current window is duplicate window,<br/>
5+
I createdd this plugin based on timkellypa's answer on stackoverflow<br/>
6+
"Stop people having my website loaded on multiple tabs"<br/>
7+
<a href="https://stackoverflow.com/a/45717724/223752">https://stackoverflow.com/a/45717724/223752</a><br/>
8+
<br/>
9+
This plugin works across all browsers IE, Firefox, Microsoft Edge & Google chrome<br/>
10+
<br/>
11+
It is basically checking GUID of the window against value in cookie<br/>
12+
13+
Sample usage:
14+
<script type="text/javascript">
15+
$(document).ready(function () {
16+
if (window.IsDuplicate()) {
17+
alert("this is duplicate window\n\n closing...");
18+
window.close();
19+
}
20+
});
21+
</script>

0 commit comments

Comments
 (0)