Breakout of frames

Submitted by:Jhon Brain

Date added:17 November, 2012

Category:JavaScript

Little bit of javascript which will automatically break out of frames

Tags: breakout , frames

Code Snippet:

<!-- Copy & Paste - <head></head> tags -->
<script type="text/javascript">
<!--
function breakout() {
if (top.location != location) {
top.location.href = document.location.href ;
}
}
window.onload=breakout;
//-->
</script>
 
 

Comments