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 IE security pop up window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disabling IE security pop up window" Watch "disabling IE security pop up window" New topic

disabling IE security pop up window

jazy smith
Ranch Hand

Joined: Nov 18, 2009
Posts: 101
Hi all,
I am fetching webpage from secure server ( https ) which has print button on it. Clicking on print button would fire ActiveX control for printing. Thing is, when I click on print button, I get IE security popup saying "page contains secure and non secure items". I know why is it coming up because ActiveX control is running on HTTP ( non secure ) server (that is my local machine). Now, this is the code snippet. The report object is ActiveX object. As soon as ActiveX control executes and gives the result back to javascript, I get that pop up window.

Is there any way I can hide or disable that popup through programming ? disabling from IE option, I know. But i want to do that through javascript.

Any idea ?
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

You want to write some Javascript which will automatically disable a browser security feature?

Think about that for a minute. Don't just think about yourself, either. Think about what would happen if that were possible. Every malware writer would just use that Javascript feature to disable the security feature. And then the feature would be useless.

jazy smith
Ranch Hand

Joined: Nov 18, 2009
Posts: 101
Got it buddy.

I agree. Here's the link:
subject: disabling IE security pop up window
It's not a secret anymore!