开发者

Override javascript Window.opener

开发者 https://www.devze.com 2022-12-09 06:16 出处:网络
I have a pop-up window from an exiting application that I want to trap inside a lightbox开发者_运维技巧 using an iframe.This is working well except for one thing.

I have a pop-up window from an exiting application that I want to trap inside a lightbox开发者_运维技巧 using an iframe. This is working well except for one thing.

When the pop-up is "done", it calls Window.Opener to reload the parent window. I want to override this so that I can do something else when it attempts to call this function.

I'd prefer to override this vs. modify the pop-up's code, making changes to the existing application is...no fun :)


Open an intermediate window and call the pop-up from there. The intermediate window is now the "opener", so it will leave the actual parent window alone.

0

精彩评论

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