开发者

Override javascript Window.opener

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜