2

I have a web app in ASP.NET, when you a click a link, am opening a pop up window in a new page, while i do that, if pop ups are disabled in end user computer, is there a way to detect that & enable pop up blockers? so that the new window can automatically open.

Thanks.

Sharpeye500
  • 8,775
  • 25
  • 95
  • 143

2 Answers2

3

You cannot enable popups if they are blocked. It's a little different as to how to tell if your popup was blocked. See this answer Detect blocked popup in Chrome

The best thing to do is to detect if the popup was blocked and ask the used to allow popups for your site.

Community
  • 1
  • 1
Bala R
  • 107,317
  • 23
  • 199
  • 210
2

No, you can't control a person's browser settings from your website. That would be a big security problem and no body would have bothered implementing a pop-up blocker in the first place.

UPDATE: See Bala's comment. One thing is detecting that it was blocked and another thing is changing the user's browser behavior.

Icarus
  • 63,293
  • 14
  • 100
  • 115