Probably need to set your browser to block the "pop-ups".
Top toolbar when you open a browser window. Might have and icon the shape of a wrench, or the word options, or tools or something of the sort.
Look for a button for "pop-up blocker". Set it to block pop-ups.
Probably won't get them all, but does cut down on some annoyance.