Solved

Block external IFrame Pop-ups

Posted on 2004-03-27
3
386 Views
Last Modified: 2013-11-28
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?
0
Comment
Question by:matts_experiment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 50 total points
ID: 10695470
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
 
LVL 17

Expert Comment

by:dorward
ID: 10695753
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
 

Author Comment

by:matts_experiment
ID: 10695826
Thank you for your help!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WCAG audit tools 1 103
How to replace a token in a string with square brackets? 2 87
removing a class in javascript 4 72
Google Analytics - viewing a page 10 49
Learn about the eCommerce marketing trends for the year ahead.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question