By Brett McCarron, webmaster
Webmaster Secrets
I was framed, I tell ya!
The Blame Productions
|
Use this method to code your most-linked pages so that they never load in a frame in the first place. Append the code snippet shown in red to the <body> tag in your document:
<body onLoad="(self != top) top.location = self.location;">
Another idea is to make the choice of breaking out of a frame up to the reader. It looks like a regular hypertext link, which, when clicked, pops the page out of a frame. Be sure to replace the http://www.url.of.my.page.com with the actual URL of the page that you want to break out of the frame. <A HREF="http://www.url.of.my.page.com" TARGET="_top">Stuck in a frame?</A> |
More Webmaster Secrets
Copyright © 1996-2004 The Blame Productions
Trademarks and copyrights used herein are the property of their respective holders.