I have to open a new window
window.open();
But in IE, it will det开发者_如何学Goects a popup and block, if I allow then the window is opened.
How can I bypass this popup blocker and open it directly?
You can't bypass any good popup blocker. The reason why it is called a popup blocker is because it blocks popups.
An alternative to a popup window would be to use a modal dialog. There are many jQuery options available, take a look:
- jQuery UI modal
- jqModal
- Facebox
How are you trying to open the popup? If it is through a user click I guess it shouldn't be a problem, unless you are using 3rd-party tools to block popups.
Although if you are trying to open on a mouse
event or load
event you will not be able to without user consent.
Most browsers will not block a popup when you click a link, provided that the popup window is on the same domain.
If it's a cross site popup, it will be blocked, and you cannot stop it. Even attempting to bypass it in that case is black hat.
精彩评论