开发者

javascript - Can do something that interacting between 2 window?

开发者 https://www.devze.com 2023-03-25 23:32 出处:网络
example Flickr.com When i go to and login -a new popup window fill information & login close popup, refresh first window

example Flickr.com

When i go to and login

-a new popup window

  • fill information & login

  • close popup, refresh first window

How to int开发者_开发知识库eracting 2 window like that ?


before the window closes an action is called

window.opener.reload();

or

window.opener.refresh();


call this function

     function closeWindow() {

        if (window.opener && !window.opener.closed) {
           window.opener.location.reload();

        } 
        window.close();
     }

location.reload()

0

精彩评论

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