Break out of frames

Hector

New Member
Does anyone know of any break out of frames scripts? You know, the ones that automatically reload out of a frame into '_self'?
 

chcr

Too cute for words
I think so, but I'll have to find the notes. If no one else answers I'll get back to you after dinner.
 

Inkara1

Well-Known Member
I know it's real easy to make a "break out of frames" link that is just a link to the site again with target="_top" inside the a href tag. does the meta refresh tag allow targets? If so, you could have the page refresh itself into the whole browser. But then, I forget if there's a way to make it refresh only once. It's been quite a while since I messed with any of that.
 

Hector

New Member
Never mind. I found it. Here it is for anyone who might want it:

Code:
<script language="JavaScript"> 
  <!--Break out of frames
    if (top.frames.length!=0)
    top.location=self.document.location;
  //-->
 
Top