开发者

how to close client pop up windows

开发者 https://www.devze.com 2022-12-18 08:21 出处:网络
How do I close all child popup windows which are already opened using jquery, after the user logs out开发者_运维技巧?As commented, your question is quite vague but maybe you should try to store the re

How do I close all child popup windows which are already opened using jquery, after the user logs out开发者_运维技巧?


As commented, your question is quite vague but maybe you should try to store the references to the popup windows e.g. in an array and close all those windows when logging out. The exact code depends on how you open the popups.

var openedPopups = new Array();
openedPopups.push($.openPopup(...));
...

(logging out)
for (var i=0, len=openedPopups.length; i<len; i++) {
  openedPopups[i].close();
}
0

精彩评论

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

关注公众号