开发者

Close popups at logout

开发者 https://www.devze.com 2023-02-28 07:39 出处:网络
I\'m trying to get all popups to close when a logout is done.Logout is a servlet.There are many different popups that ar开发者_开发知识库e opened in this application.Is there any way to do this?I thin

I'm trying to get all popups to close when a logout is done. Logout is a servlet. There are many different popups that ar开发者_开发知识库e opened in this application. Is there any way to do this? I think I need to write a program that stores a handle of the popup window. Does this seem reasonable?


You need to store the windowObjectReference that window.open returns and use window.close:

var foo = window.open(…);

foo.close();

This method is only allowed to be called for windows that were opened by a script using the window.open method.

0

精彩评论

暂无评论...
验证码 换一张
取 消