Dean
10-20-2003, 03:10 PM
Hi there
this script breaks a page out of a frame, i want to reverse this so that if the page is not in a frame it will go and fetch the correct frame.
this is the bustframe script:
<script language="JavaScript" type="text/JavaScript">
<!--
function BustFrames() {
if (self.parent.frames.length!=0)
{
self.parent.location.replace(document.location.href);
}
}
//-->
</script>
I figure that if i swap a few bits round like so:
<script language="JavaScript" type="text/JavaScript">
<!--
function AW_BustFrames() {
if (self.parent.frames.length!=1 )
{
self.parent.location.replace(document.location.href); ;
}
}
//-->
</script>
By changing the 0 to 1 i hoping this will mean if it is not in a fram then do the second bit in red but i need this bit to go to a url that i type in.
So can anybody help me with this one.:confused: :confused:
cheers dean
this script breaks a page out of a frame, i want to reverse this so that if the page is not in a frame it will go and fetch the correct frame.
this is the bustframe script:
<script language="JavaScript" type="text/JavaScript">
<!--
function BustFrames() {
if (self.parent.frames.length!=0)
{
self.parent.location.replace(document.location.href);
}
}
//-->
</script>
I figure that if i swap a few bits round like so:
<script language="JavaScript" type="text/JavaScript">
<!--
function AW_BustFrames() {
if (self.parent.frames.length!=1 )
{
self.parent.location.replace(document.location.href); ;
}
}
//-->
</script>
By changing the 0 to 1 i hoping this will mean if it is not in a fram then do the second bit in red but i need this bit to go to a url that i type in.
So can anybody help me with this one.:confused: :confused:
cheers dean