BratCat
12-24-2006, 08:29 AM
Hello,
I have been searching these forums for my answer to my question for quite some time now and haven't found the answer anywhere here or iframes section .. anyways I found the script you see below,
Some Information,
Script: Open Page in Frameset Script
Functions: If a page is intended to be opened only within a frameset, this script refers the browser immediately to the frameset page..
Put the following script in the head of your page. Set the
url of the frameset page where shown below.
<script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
if (parent.location.href == self.location.href){
// change the url below to the url of the
// frameset page...
window.location.href = 'index.html'
}
</script>
Ok I've done exactly what it says and it does what it's supposed to but gives me an error at the bottom of the page.. My question now is can someone include me in as to why this may be happening and if there are other scripts out there with the same function?
Any help would be greatly appreciated,
Thanks,
Andrew...
I have been searching these forums for my answer to my question for quite some time now and haven't found the answer anywhere here or iframes section .. anyways I found the script you see below,
Some Information,
Script: Open Page in Frameset Script
Functions: If a page is intended to be opened only within a frameset, this script refers the browser immediately to the frameset page..
Put the following script in the head of your page. Set the
url of the frameset page where shown below.
<script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
if (parent.location.href == self.location.href){
// change the url below to the url of the
// frameset page...
window.location.href = 'index.html'
}
</script>
Ok I've done exactly what it says and it does what it's supposed to but gives me an error at the bottom of the page.. My question now is can someone include me in as to why this may be happening and if there are other scripts out there with the same function?
Any help would be greatly appreciated,
Thanks,
Andrew...