Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: how to....

  1. #1
    New Coder
    Join Date
    Jul 2003
    Location
    Houston, TX
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to....

    if the page not in its origional frames how do you make it open something like (wrongpage.html) automaticly
    Visit www.geocities.com/gamez4play
    for best games

  • #2
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    As far as I know after a discussion here, there is no client-side possibility to make a separation between an "alone" and a "together with parent" opening of a child frame
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Regular Coder ellisd5's Avatar
    Join Date
    Jun 2002
    Location
    Uk
    Posts
    160
    Thanks
    5
    Thanked 0 Times in 0 Posts
    You can make sure that its in a frame, if thats any use to you

    Code:
        if (self.location == top.location) {
            document.location = frameset.html
        }

  • #4
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts

    Smile

    You can make sure that its in a frame, if thats any use to you


    code:--------------------------------------------------------------------------------
    if (self.location == top.location) {
    document.location = frameset.html
    }

    Hm... that means, hharchester, that I can detect, after all, either a page is loaded together with its parent frame or alone?... I'll test that. It is a major problem to me, as I work mainly with iframes, and I have serious problems when a serach engine founds the iframed page and displays it alone, without its parent (which had, obviously ... teh menu )
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #5
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    Coolguy, please read our posting guidelines regarding choosing a descriptive subject for your question and more: http://www.codingforums.com/postguide.htm
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •