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="Javascript" type="text/javascript">
<!--
[nbsp][nbsp] top.location.target="_top"
[nbsp][nbsp] if(window.location.target != "_top") {
[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)]
<SCRIPT LANGUAGE="Javascript" type="text/javascript">
<!--
[nbsp][nbsp] top.location.target="_top"
[nbsp][nbsp] if(window.location.target != "_top") {
[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)]