How can I check for an open URL in another window?

前端 未结 6 1748
一个人的身影
一个人的身影 2021-01-01 03:03

This is a follow up to my last question Open a window if the window does not already exist Essentially, I am now keeping a list of all the window references that have been o

6条回答
  •  伪装坚强ぢ
    2021-01-01 03:10

    No, this would be a security/privacy issue.


    Since others have brought up the ownership/cookie state storage: this only works if you are also the same document which opened the window, i.e. in the scenario where the user shuts the window down and reopens then these references are indeed lost (and even if you stored them, you wouldn't have permission to close them any more)

提交回复
热议问题