SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lycos search frame

    Hi guys and girls

    I need help putting together a script that will break out of the Lycos frame
    The only method I have found so far is window.open but in a frameset it becomes a loop.
    Does anyone now how to find the the header url in the frameset so that I can call it as part of the script argument.
    If you want to look at the Lycos frame
    http://search.lycos.co.uk/searchFram...ll%26SITE%3Duk

    If you know of a method to break this frame please let me know.

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know too much about this, but I've been using the following and it seems to work ok.
    Code:
    if (top.location != document.location) top.location = document.location;

  3. #3
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BTW, this goes directly in the HEAD element, before any other executable code.
    Code:
    <script type='text/javascript'>
    if (top.location != document.location) top.location = document.location;
    </script>

  4. #4
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I have not made it clear, the web site is in frames and Lycos search takes the top frame, normal frame breakers don't work.
    If I can find some code that will recognise the top frames url that may be good enough.

  5. #5
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the top frame's name is 'header', then this should get it's url:

    window.top.frames['header'].document.location


Bookmarks

Posting Permissions

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