开发者

Get Window.Opener handle for popups opened within from flash

I have a webpage (popup) with flash content. When a user clicks a button inside the flash content, it opens up another browser popup window. Next, I need to close the window with flash content from the newly opened popup window through javascript.

The problem is that the window.Opener is null as the popup is invoked inside from flash content. Moreover we dont have access开发者_如何学运维 to flash (.FLA) file.

Please help me to get around this.


With ExternalInterface, have your Flash code call openPopup() and closePopup() JS functions in the original window. These functions can keep track of the opener handle.

BTW, popup windows are bad. They are hard to work with, hated by users, and thwarted by browsers. If your client insists, then talk your client out of it. Use an Ajax dialog instead.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜