Javascript window.open returns null in 32-bit IE8 on Win7 x64

后端 未结 3 1144
無奈伤痛
無奈伤痛 2021-01-12 06:44

I have read the related questions on this topic, but haven\'t yet found a solution to this issue. I have a simple javascript function that calls window.open when a link is

相关标签:
3条回答
  • 2021-01-12 07:28

    I don't know about your other issues, but the reason the 32 bit version is the more visible one by default is that most plugins still don't have 64 bit versions, eg. Flash, so the average user would be very confused when they can't get Youtube to work on their shiny new 64 bit system.

    0 讨论(0)
  • 2021-01-12 07:38

    I noticed something similar.

    I have a window opened using IE function showModalDialog. On this window, I have a button that calls window.open. This call returns null. Then I opened the same page in normal window, not in modal dialog. This time the button returned null as well, but IE told me that web page wants to open pop-up window wand this was blocked. It gave me an option to unblock it... and it started working in both cases - modal and regular window.

    It seems that in Modal mode in IE, IE does not show warnings like popup blocked.

    0 讨论(0)
  • 2021-01-12 07:42

    Internet Explorer seems to return null if the url is outside your current domain. You can work around it by open an empty page first, then navigate the window to the actual url:

    var newwindow;
    function pop(url)
    {
        newwindow=window.open('','','height=500,width=532');
        newwindow.location = url;
    
        if (window.focus) {newwindow.focus();}
    }
    
    0 讨论(0)
提交回复
热议问题