How to prevent a user from having multiple instances of the Same Web application

前端 未结 16 665
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 05:39

I\'m wondering if it is possible to determine if a user already has a web browser open to the web application I\'m working on. It seems that they can open several instances

16条回答
  •  臣服心动
    2020-12-06 06:15

    You can stop the page functionality when user opened another tab or another window or even another browser

      $(window).blur(function(){
    
    // code to stop functioning or close the page  
    
    });
    

提交回复
热议问题