How can you programmatically check if an iframe would be blocked by a site?

Viewed 3002

I'm generating a bunch of iframes dynamically that load random websites, and I was wondering if there would be a way to programmatically check if iframing for a website were blocked so I can fall back to a thumbnail of the site instead. Is there a way to do this, and if so, how? (JQuery is preferred.)

2 Answers
Related