Thank You!!
I change the code to this..
if (top.frames.length > 0 ) {
if (window.location.host != window.location.hostname) {
top.location=self.document.location
}
}
It doesn't shows any errors,
I have been looking for a simple way to have a frameset (actually a framebreaker) which only allows a given host or IP to be able to use the frameset.
I have tried this method.
<script language="javascript" type="text/javascript">
<!--
if (top.frames.length > 0 )
if (top.location.host !=...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.