To turn off:

Step 1: Open the Mozilla Firefox browser.
Step 2: Click the dropdown menu on the top left corner and select Options.
Step 3: Click Privacy & Security.
Step 4: Scroll down to Permissions and uncheck the Block pop-up windows box.