Domain Empire

Simple JavaScript to break out of Frames

NameSilo
Watch
Impact
6
Code:
<script language="JavaScript" TYPE="text/javascript">
<!--
function fB()
{
if (top.location != location) {
top.location.href = document.location.href ;
  }
}
-->
</script>

You can place that in the head section of you Webpage and if somebody trys including your website in their frames it will break out out of them and put your page in it's own window. :D
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back