View Single Post
Old 2005-10-25, 05:44 PM   #63
kalle7
Hey, can you take the wheel for a second, I have to scratch my self in two places at once
 
kalle7's Avatar
 
Join Date: Jan 2004
Location: Here and there...
Posts: 182
Quote:
Originally Posted by Jel
Doesn't this piece of code in your head tags prevent your page being loaded in a frame?

<script language="Javascript">
var domaincheck=document.location.href
var accepted_ok=false
if (domaincheck.match ("http:\/\/www.yourdomain.com")){
accepted_ok=true
}
if (domaincheck.match ("http:\/\/yourdomain.com")){
accepted_ok=true
}
if (!accepted_ok){
window.location='http://www.yourdomain.com/'
}
</script>

(Sorry I couldn't get it to paste correctly in a code, php, or even quote tag)

That is from TDavid Kalle

Thanks Jel I will try that and see if I can get it to work. TDavid has some real useful work.
kalle7 is offline   Reply With Quote