SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jul 2004
    Location
    Canada
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    From Frames page to No Frame page

    Is it possible to load a page from a framed page to a no frame page in the same window.

    So I am browsing a Framed page and one of the frames, say the "mainFrame", has a link to return to the Home page of the site. But the home page is NOT a framed page, it is simply one single page. Nevertheless, when I clink on the "Home" button, the page gets loaded to the "mainFrame" leaving left over frames from the previous screen.

    I know, if I load the Hoem page to a _new window, this problem won't occur. But I want to try and avoid opening new window for that purpose. Is there a way to clean the entire widnow, remove all the frames from the window and load the Home page to the same window?

    Thank you.

  2. #2
    Getting there... Willigogs's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    394
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simply link to the page you want to go to and add target="_parent" to the <a> tag.

    HTML Code:
    e.g.
    
    <a href="www.your-website.com" target="_parent">Link</a>

  3. #3
    SitePoint Member
    Join Date
    Jul 2004
    Location
    Canada
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent!!! Thank you. That does it....


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
  •