3 ms·
<script language="JavaScript" type="text/javascript"> <!-- function breakout_of_frame() { if (top.location != location) { top.location.href = do
by miles 18y ago
<script language="JavaScript" type="text/javascript">
<!--
function breakout_of_frame()
{
if (top.location != location) {
top.location.href = document.location.href ;
}
}
-->
</script>
...
<body onload="breakout_of_frame()">
====================
The above is from: http://www.thesitewizard.com/archive/framebreak.shtml http://www.thesitewizard.com/archive/framebreak.shtml
Another, shorter example: http://www.irt.org/script/473.htm http://www.irt.org/script/473.htm
Actually, now that I've RTFA, it looks like the one DF linked to originally is swell, and doesn't require using onload:
http://en.wikipedia.org/wiki/Framekiller http://en.wikipedia.org/wiki/Framekiller