📜 ⬆️ ⬇️

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. Already tried, and commercials - and the result is zero: in Opera, Fox and Safari opens, and in IE - no effect.

The solution was found purely by chance. The line looked like this:
myWin = window.open(url, "display Window", options);

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 the space in the second parameter (however, in FF everything works). Replacing the “display Window” with the “displayWindow” solved the problem.

For me, this "bug" Explorer'a was new and hitherto unknown - I hope someone else will also come in handy.

')

Source: https://habr.com/ru/post/46029/


All Articles