Page 1 of 1

Break Frames

Posted: Fri Dec 24, 2004 7:29 am
by coco
If a visitor comes to your site and is looking through frames, this script will automatically make the page break out of frames


Copy this code into the BODY of your HTML ****

<body>

<script type="text/javascript" language="JavaScript">
<!-- Begin
if (window != top) top.location.href = location.href;
// End -->
</script>
</body>

Posted: Tue Jan 11, 2005 12:42 am
by coco
[quote="rivermonkey"]My own way of doing the same thing:

<script language="Javascript">
<!--
if (top.location != self.location) {
top.location = self.location]
OH ,yeah ,is good code:)

Posted: Tue Jul 05, 2005 7:52 am
by mosherben
or for any links just change the target to _top.

eg. <a href="url" target="_top">

Posted: Fri Feb 24, 2006 9:04 am
by kaos_frack
what if the browser does not support frames