I install a few addons.
1. Adblock Plus.
2. WOT (web of trust)
And I think this is default but the stock settings about allowing a web page to pop up is usually off. I find many folk won't go looking for that setting. Please learn your tools.
Your question is very slim. I can't tell if it's some home page that does it or an infection.
Bob
When I open my firefox browser, I can see ad. If I click any box or anywhere of my firefox browser, an ad is opened with a new window.
How can I stop this?
Thank you.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic