Like any good webmaster, you dutifully employ an iframe, with the source being the URL of the page you want to share. Alas, when you load your page, the screen refreshes and you're taken away from your site to the page you're trying to load into the iframe.
You've just been framebusted.
Framebreaker scripts are very common. Webmasters employ them to keep OTHER webmasters from re-presenting their content in another site. But for every action, there's an equal and opposite reaction.
The next time you want to load remote content into an iframe on your site, try:
<iframe src="http://www.Somewhere.com/SomePage.html" security="restricted"></iframe>The SECURITY attribute in IE allows you to open a third-party page as though it was within the high-security restricted sites level as defined within IE. This means no Javascript and that means framebuster scripts won't work.
The attribute doesn't work in non-IE browsers however. Javascript framebusters function correctly in those browsers.
6 comments:
wow if this is true and actually works, I mean it solves a problem that I've been having. Hooray!
Why are you trying to frame sites that don't belong to you anyway?
Or, you could link directly to the website instead of going against the wishes of the creator of that website. If people like your site, they'll come back to it.
oke nih..
thanks
Does that mean good and bad publishers can now IFRAME Twitter? I doubt that but maybe other less secured sites.
It works but only for the first page referenced in the URL. If you click a link on the remote site and that page also has framebuster code in it, the new page will open in a new window.
Post a Comment