Detect IFRAME blocking?

1.4k views Asked by At

I'm working on a site that will display HTML content from other links within an IFRAME. I know that a lot of sites have JavaScript code that will detect the content is being displayed in an IFRAME and prevent it from rendering. I'd like to be able to detect the presence of this IFRAME blocking code, and redirect the user to the original page (without the IFRAME) if it would normally be block.

Try as I might, though, I haven't found anything reasonable that works. Have any of you implemented something like this? Any pointers?

UPDATE: For those of you who want to see what I'm talking about, here is a link that shows the behavior. If you look at it in Firebug, you'll see that the HTML content from the IFRAME is empty.

0

There are 0 answers