First thing is to identify your Browser Usually Firefox ,Chrome or Edge (microsoft)…then do a search for pop-up blocker for that Browser in Google or whatever your search engine is ..install the pop-up blocker.I use a Firefox Browser with Ubuntu 14 and in Preferences I choose either pop ups on or off,or ASK..
If it starts doing something weird you can uninstall it or not activate it ….in Linux go to “preferences” it will ask if you want to “activate”,block”,always ask” depending on the version….The other Browsers should have something similar .in thier “add ons” that gives you some options for turning on or off the pop up blocker ..