954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How do I write code to close all pop up window

Hello Java Experts,
Suppose I visit 10 web sites , some of them open pop up window even when I have blocked them in IE , then I get say 5 additional pop up window , is there an easy way to write java program to close all such pop up windows ?

ithelp
Nearly a Posting Maven
Banned
2,230 posts since May 2006
Reputation Points: 769
Solved Threads: 128
 

hi ithelp,
as far as I know because of java's "safety" limitations it has difficulty working with other applications in this sense. I think it would be very difficult if not impossible...

though I don't consider myself an expert nor should anyone else...

PO

PhiberOptik
Junior Poster
164 posts since May 2008
Reputation Points: 10
Solved Threads: 4
 

hi ithelp, as far as I know because of java's "safety" limitations it has difficulty working with other applications in this sense. I think it would be very difficult if not impossible...

though I don't consider myself an expert nor should anyone else...

PO


Which language could suit better C or Perl or VC ++ ?

ithelp
Nearly a Posting Maven
Banned
2,230 posts since May 2006
Reputation Points: 769
Solved Threads: 128
 

I guess C or C++, possibly C# but not sure, would be more suitable as you can use them to reach and communicate with OS. Dunno about Perl

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

Java's not the best choice for this kind of thing.
Here's a script that does what you want:
http://www.interclasse.com/scripts/killpopup.php

JamesCherrill
Posting Genius
Moderator
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You