Frame Jumpers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Axel Foley

    #1

    Frame Jumpers

    Hi,

    I use a snippet of JS in the header section of a dreamweaver template. When
    people email each other site links to this site, it forces a "jump" out of
    "trapped frames" like in hotmail, etc. What I am wondering, At present I
    have the SELF.PARENT.LOC ATION set to the site's home page.

    Is there any JS function that will capture the current path/filename for the
    current page, so that I can automatically "jump" to the actual "current"
    page, rather than the site's home-page?

    Here is the snippet I use:

    <SCRIPT language="JavaS cript1.1">
    <!--
    setTimeout ("changePage()" , 30);
    function changePage() {
    if (self.parent.fr ames.length != 0)
    self.parent.loc ation=http://www.mysite.com/index.htm; }
    // -->
    </script>



    thanks for any help with this!!

    Axel


  • Greg Griffiths

    #2
    Re: Frame Jumpers

    You may be okay with a variant of the following Frame Manager script :

    Javacsript tutorial on how to ensure that a page is loaded with the correct frameset around it in a website using Frames if the page is called directly


    Axel Foley wrote:
    [color=blue]
    > Hi,
    >
    > I use a snippet of JS in the header section of a dreamweaver template. When
    > people email each other site links to this site, it forces a "jump" out of
    > "trapped frames" like in hotmail, etc. What I am wondering, At present I
    > have the SELF.PARENT.LOC ATION set to the site's home page.
    >
    > Is there any JS function that will capture the current path/filename for the
    > current page, so that I can automatically "jump" to the actual "current"
    > page, rather than the site's home-page?
    >
    > Here is the snippet I use:
    >
    > <SCRIPT language="JavaS cript1.1">
    > <!--
    > setTimeout ("changePage()" , 30);
    > function changePage() {
    > if (self.parent.fr ames.length != 0)
    > self.parent.loc ation=http://www.mysite.com/index.htm; }
    > // -->
    > </script>
    >
    > thanks for any help with this!!
    >
    > Axel[/color]

    Comment

    Working...