开发者

Pop up enabling

开发者 https://www.devze.com 2023-04-05 15:38 出处:网络
I have a web app in ASP.NET, when youa 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

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 bl开发者_StackOverflow中文版ockers? so that the new window can automatically open.

Thanks.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消