If they are browser popups, then there is always ad-aware to stop spawning advertising windows and spyware. Simply inhibiting all popups can be inconvenient.
[Bob,gil] I switched off all Java and JavaScript on my browser ages ago and it's never inconvenienced me even slightly.