Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Not allow user to open website in multiple windows

License

Notifications You must be signed in to change notification settings

nitinjs/jquery-duplicatewindow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery-duplicatewindow

Not allow user to open website in multiple windows

jQuery plugin to check if current window is duplicate window,

This plugin works across all browsers IE, Firefox, Microsoft Edge & Google chrome

It is checking GUID of the window against value in cookie

Sample usage:

    <script type="text/javascript">
        $(document).ready(function () {
            if (window.IsDuplicate()) {
                alert("this is duplicate window\n\n closing...");
                window.close();
            }
        });
    </script>

demo

click here to donate if you find this project helpful