www.webdeveloper.com
Results 1 to 5 of 5

Thread: Back to top link not working in IE6

  1. #1
    Join Date
    Feb 2010
    Location
    England
    Posts
    122

    Back to top link not working in IE6

    Whether I create a link that is simply href="#", or point it to a div via href="#nameofdiv", all I get is a The page cannot be displayed error.

    Seems to work in other browsers and newer versions of IE, but I'm stuck using IE6 as it's on a work computer.

    Any fixes?

    Cheers.
    Regards,

    Haze

  2. #2
    Join Date
    May 2011
    Posts
    9
    can i see code?

  3. #3
    Join Date
    Feb 2010
    Location
    England
    Posts
    122
    The code is pretty much as stated.

    HTML Code:
    <a href="#">Back to top</a>
    ... should work on it's own, and does in Firefox and IE7+.

    I also tried...

    HTML Code:
    <div id="top">Stuff</div>
    
    <a href="#top">Back to top</a>
    Regards,

    Haze

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    the hash '#someid' should point to an anchor (an A element) not to a DIV
    Code:
    <a id="foo"></a>
    ...
    <a href="#foo">go to the anchor "foo"</a>
    To bring a document to the top:
    Code:
    <a href="#">that brings the document to the top</a>
    That works in all the browsers, IE6 included.

  5. #5
    Join Date
    May 2011
    Posts
    9

    if i understood you

    In top you mast set ..
    <a name="top">.....</a>

    link must be
    <a href="#top">Back to TOP</a>

    Try

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles