1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML refreshing frames

Discussion in 'Web Development' started by Linx, Jan 31, 2008.

  1. Linx

    Linx Member

    Hi everybody!
    I'm really impressed with all of your knowledge, and have a question for you.
    A friend of mine has made a site with frames. And now he's experiencing one problem - if you hit the refresh button it goes back to the index page, when I want it to refresh to the page I was on.
    Please, help to figure out why it does that?

    Thanks.
     
  2. Linx

    Linx Member

    Any ideas, guys???
     
  3. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    Refresh it by setting its location.href to its location.href.

    Code:
    frame.location.href = frame.location.href;or

    You could place this in your frame and increase the content digit..

    HTML Code: <meta http-equiv="refresh" content="2">

    Or forward
    HTML Code: <meta http-equiv="refresh" content="2;url=http://www.your_url.com/">

     
  4. espero

    espero New Member

    ishkey have give you very good solution meta tags.
    But please consider to renew coding of your website and try to avoid using of frames.
    Search engines does not like frames because it is difficult for them to search for a specific content and move backwards to check to which frameset each page belongs to and retrieve all the pages in the frameset.
    Bookmarking does not works too because of using a couple frames.