Break out of Frames
- Home
- HTML
- Break out of Frames
If you want to avoid having your pages get trapped within another frameset, this script will do the trick.
<head>
<script language
= javascript>
if(top.location != document.location.href) {
top.location = document.location.href;}
</script>
</head>
or
<script>
<!--
if (window != top )
top.location.href = window.location.href;
// -->
</script>
frames break out of frames break frames