A small feature of window.open in Internet Explorer

    Today I had to deal with one very funny bug: in IE 7 the pop-up window from JavaScript did not open. Have already tried it, and so on - and the result is zero: in Opera, Fox and Safari it opens, and in IE - no effect.

    The solution was found purely by accident. The line looked like this: The second parameter window.open - the name of the window - as it turned out, IE does not open the window if there are spaces in its name. At the same time, as I was shown in the comments to the post, FireFox developers also do not recommend using a space in the second parameter (however, everything works in FF). Replacing “display Window” with “displayWindow” solved the problem. For me, this Explorer bug turned out to be new and hitherto unknown - I hope someone else comes in handy too.
    myWin = window.open(url, "display Window", options);




    Also popular now: