All Forums >> [Scripting] >> Post a VBScript >> VBScript PopUp Blocker Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
In 99% of circumstances I'm against such a thing, but then I started thinking, "what about embedded IE instances? Or cases where people refuse to install a popup blocker for some ungodly reason?".
So thanks to AngieX's ever vigilant and unceasing question on this subject, I finally broke down and created a basic Pop-up blocker for IE as a proof of concept for people to improve upon:
The only Issues I see with this are: 1.- it'll run forever until you stop it with the task manager 2.-You have to start this manually everytime you start windows 3.-It'll close popups once ever 2 seconds (which you can adjust) 4.-If the popup opens a popup window of its own, then an error will occur (I didn't check wether window.opener was closed or not first)
All of these minor issues could be fixed without too much effort if someone had the desire to actually use a code lik this.
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch