File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Disabling the popup blocker using java script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disabling the popup blocker using java script" Watch "Disabling the popup blocker using java script" New topic

Disabling the popup blocker using java script

Rakesh Kumar.A

Joined: Sep 20, 2010
Posts: 1
Hi i'm working on ASP.NET. in my application i'm using to popup a window. But popup blocker blocks the pop up window in there any way to disable the popup blocker using java script?.....
Lester Burnham

Joined: Oct 14, 2008
Posts: 1337
The popup blocker runs as part of the browser; there's nothing the web app can do about it (except not using popups, of course).
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Welcome to the JavaRanch.

Why would you want to do this? Users can usually set exceptions for sites in their pop-up blockers so if they want to get pop-ups they can. And if they don't want it you'll only annoy them. What has javascript to do with JSP?

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Welcome to JavaRanch!

Users would need to specifically allow your site to open popups.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63542

OF what use would a pop-up blocker be if any old web site could just disable it?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Disabling the popup blocker using java script
It's not a secret anymore!