Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-10-25, 05:44 PM   #1
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:02 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc