Results 1 to 2 of 2

Thread: Using an anchor tag inside of an inline frame

  1. #1
    Join Date
    Jan 2006
    Posts
    25
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Using an anchor tag inside of an inline frame

    Hey everyone,

    I've have a website where I post a fairly regular blog. The website is comprised of inline frames (where the blog appears). When a person reaches the bottom of that frame, you have the option of clicking a link that will take the reader to the next page of the blog. Because its in a frame, clicking the link will take the reader to the BOTTOM of the next page, rather than the top. I solved this problem, but including a "top" anchor in each page, and including #top at the end of each "next page" link. This solved the problem for Firefox users, however IE users still suffer the problem of being brough to the bottom of the next page(though it works at random and seldom times).

    Any ideas or solutions on this one?

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Just another reason not to use frames. However, you could try adding window.top.scrollTo(0,0) to the onclick of the link.Like this
    Code:
    <a href="somepage.html" onClick="window.top.scrollTo(0,0)">Next Page</a>

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
  •