简体   繁体   中英

In IE6, how can I determine if window.open is redefined?

I have this odd problem with a third party script. On our site a popup window loads a demo of one of our applications when a link is clicked. The third party script is supposed to popup an additional window underneath at the same time or sometime thereafter.

(Yeah this sounds crazy but the popups must load in this way.)

Of course this works fine in FF3.

Problem is in IE6 only the third party script pops up, but not the demo popup. If I click the link again the demo popup works.

After the thirdparty script saves it's session cookie it's window doesnt popup anymore but then the Tools popup works. (if i reload the page and it saves the cookie info -- this is the expected behavior. the third party popup should only load on the first session)

Seems to me that at some point down the wire windows.open isnt getting called properly because of some timing issue or windows.open being redefined somewhere. I don't see any error messages.

To pinpoint the issue I thought I'd have to see whats going on with the windows on the click.

I guess I need some help in figuring out what information I should look for to try and debug this issue.

这将告诉您是否要处理真正的window.open或重新定义的窗口:

var isOpenNative = /\[native/.test(window.open+'');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM