Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q2034 How do I make sure my site does not get framed?

irt.org | Knowledge Base | HTML | Q2034 [ previous next ]

Q2034 How do I make sure my site does not get framed?

This is a tough question. There's even been web sites going to court, because their site got framed by another site.

The HTML answer to the question, is to add target="_top" to every link. This would make your links look like the below example:

<A HREF="main.htm" TARGET="_top">The Main Page</A>

This will make sure, that when a user clicks on a link, he/she will jump out of any possible frames. If the page is not framed, the user will not notice a difference.

There's also a JavaScript solution to the problem, and you can learn more about this in the article Redirecting access within frames #2


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.