Skip to content

nitinjs/jquery-duplicatewindow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 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