Reputation: 2974
I have to open a new window
window.open();
But in IE, it will detects a popup and block, if I allow then the window is opened.
How can I bypass this popup blocker and open it directly?
Upvotes: 0
Views: 1894
Reputation: 11
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.
Upvotes: -1
Reputation: 7430
An alternative to a popup window would be to use a modal dialog. There are many jQuery options available, take a look:
Upvotes: 2
Reputation: 100331
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.
Upvotes: 0
Reputation: 2567
You can't bypass any good popup blocker. The reason why it is called a popup blocker is because it blocks popups.
Upvotes: 4