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.
精彩评论