Microsoft Edge blocks pop-up windows by default, but if by some accident or tragedy that setting has been disabled and you’re being plagued again with intrusive windows, here’s how to turn that settings back on or keep it on if that’s how you like.
Open Edge.
Click the More button in the top right (the one with the three dots).
Click Settings.
Scroll down and click View Advanced Settings.
Click the slider under the heading that says Block pop-ups.