Skip to content
Not allow user to open website in multiple windows
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Duplicate.js
LICENSE
README.md
TestPage.html

README.md

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

You can’t perform that action at this time.