PDA

View Full Version : Frames breakout


Cindy
05-15-1999, 10:57 AM
I'm working on adding a simple frame to my site. However, the following JavaScript for frame breakout, also causes my own page to break out of its frame. Can't I have this JavaScript AND have frames on my page?

<SCRIPT LANGUAGE=&quot;Javascript&quot; type=&quot;text/javascript&quot;>
<!--
[nbsp][nbsp] top.location.target=&quot;_top&quot;
[nbsp][nbsp] if(window.location.target != &quot;_top&quot;) {
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]top.location.href=window.location.href
[nbsp][nbsp] }
// -->
</SCRIPT>

My test frame page is http://www.mjblue.com/frames.html

------------------

Cindy
[nbsp]www.mjblue.com[nbsp][nbsp]
<!-- NO_AUTO_LINK -->
[This message has been edited by Cindy (edited 05-15-99)]

Deb
05-15-1999, 11:12 AM
Try taking the script out of the content pages and putting it into the frames.html that should solve it ;)

Deb

Cindy
05-15-1999, 12:29 PM
Thanks! :D
------------------

Cindy
www.mjblue.com (http://www.mjblue.com)