Hello, currently im using this code to prevent my site from iFrame

Code: 
<script type="text/javascript">
<!--
if (top.location.href != self.location.href)
  top.location.href = self.location.href;
//-->
</script>
Yes, its working on Chrome but not working for Firefox and IE. Any other code can prevent iFrame for FF and IE?
MediaStar Reviewed by MediaStar on . Need help code for prevent iFrame Hello, currently im using this code to prevent my site from iFrame <script type="text/javascript"> <!-- if (top.location.href != self.location.href) top.location.href = self.location.href; //--> </script> Yes, its working on Chrome but not working for Firefox and IE. Any other code can prevent iFrame for FF and IE? Rating: 5