window.open() and target="_blank" not working together in IE
The thing is — if you have links with target="_blank" and you have handler for click on this link that makes window.open(), then pop window that was called with JS will be shown, but the link will be not open in new tab in IE (9 version was tested for sure), it will be blocked by IE popup blocker.
All other browsers open both — a lin开发者_运维百科k in new tab and a pop window. Any workaround?As you said, Chrome allows this while IE9 blocks this behavior by default (fiddle). However, this seems like a perfectly legitimate response from a pop-up blocker. I doubt most users would (or should have to) expect that a hyperlink will open two new windows simultaneously.
That said, your users can certainly change their pop-up blocker settings for IE in order to allow pop-ups from your site.
[Update]
Testing with a timeout on the window.open(), it appears that it's certainly the second window which is suppressed regardless of whether it's the link's href or the result of the window.open() (fiddle).
精彩评论