iframe, Auto scroll to top when following a link inside

Discussion in 'JavaScript' started by webmagnets, Mar 27, 2005.

  1. #1
    I have to use iframes to get my product database to show in my website.

    I causes a problem though.

    Check out this page: http://www.web-magnets.com/productsearch.html

    Do a search for pen.
    Scroll to bottom and click one of the last products.
    You will notice that the next screen loads, but you can't see it because it is higher up in the iframe.

    Is there a way to make the iframe scroll to the top automatically everytime a new page loads?
     
    webmagnets, Mar 27, 2005 IP
  2. webmagnets

    webmagnets Peon

    Messages:
    152
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I forgot to mention that I can put html in the header and the footer of the iframed page.
     
    webmagnets, Mar 27, 2005 IP
  3. webmagnets

    webmagnets Peon

    Messages:
    152
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Never mind, I have resolved this problem.
     
    webmagnets, Mar 28, 2005 IP
  4. gon

    gon Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Could you please post your solution?
    Regards.
     
    gon, Jun 3, 2006 IP
  5. webmagnets

    webmagnets Peon

    Messages:
    152
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I went a different route. Not using iframes.
     
    webmagnets, May 18, 2007 IP