Block external IFrame Pop-ups

On one of my webpages, there is an IFrame containing a page hosted by another site. It has pop-ups that come up when the IFrame is loaded. I don't have any pop-ups normally, and I really don't want to inconvenience my visitors with any. Is there any way I could block the pop-ups from the IFrame by putting a code in my page?
matts_experimentAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
seanpowellConnect With a Mentor Commented:
If the popups are part of the other web site - it would likely violate that sites policies to bypass them.
You options at this point are:

1. Ask the other site to remove the poups.
2. Use another site for the iframe.

If the site in question does not require that you display these popups, they should be able to provide you with code to remove them.

Just so you're aware - and just in case - asking for or posting code that would allow you to circumvent the current behavior would violate the EE Membership Agreement - so it's likely we will not be able to provide you with much further assistance on this one :-)

Thanks,
Sean
0
 
dorwardCommented:
And it isn't possible to block them anyway. Cross domain scripting isn't possible in a standard security environment, and they are likely triggered as the script loads rather then in response to an event.
0
 
matts_experimentAuthor Commented:
Thank you for your help!
0
All Courses

From novice to tech pro — start learning today.