By deleting them.
Are you talking about advertising popups?
http://windows.microsoft.com/en-US/Windows7/Internet-Explorer-Pop-up-Blocker-frequently-asked-questions
This is a Simple Dialog Demo.