@mac118
Double click on home button, scroll the bar that pops up for the safari icon...see the little red "minus" symbol? Click on it.
Then, go to settings>Safari...scroll down to where it says "block pop-ups" slide it to OFF. Then, instead of the spam pop up a message that says "This site is attempting to open a pop-up window" will appear. Click cancel.
Now, you'll have to do this sometimes again if you turn off your iphone, or safari crashes or some other reasons. HOWEVER all you will have to do is click the home button twice and then click the "minus" button on the safari icon.