Linking inside a doc using IE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Hill

    Linking inside a doc using IE

    1) I have this link like:

    <a href='#A1' onclick="go_ans wer('A1');">How do I find ....</a>

    then an anchor like:

    <a name='A1'></a>

    It works in Mozilla but not IE.

    What's up with that?

    You can see this at www.hulenbend.net/cgi-bin/faq.cgi

    Mike


  • Michael Hill

    #2
    Re: Linking inside a doc using IE

    I'm sorry. It did sound too easy a question to post. After I set back to
    look at the code I found that I need a space in the anchor name attribute
    like:

    <a name='A1'>&nbsp ;</a>

    Mike
    "Michael Hill" <hillmw@charter .net> wrote in message
    news:vm4ildc8gt lsa2@corp.super news.com...[color=blue]
    > 1) I have this link like:
    >
    > <a href='#A1' onclick="go_ans wer('A1');">How do I find ....</a>
    >
    > then an anchor like:
    >
    > <a name='A1'></a>
    >
    > It works in Mozilla but not IE.
    >
    > What's up with that?
    >
    > You can see this at www.hulenbend.net/cgi-bin/faq.cgi
    >
    > Mike
    >
    >[/color]


    Comment

    • Daniel R. Tobias

      #3
      Re: Linking inside a doc using IE

      Michael Hill wrote:
      [color=blue]
      > 1) I have this link like:
      >
      > <a href='#A1' onclick="go_ans wer('A1');">How do I find ....</a>
      >
      > then an anchor like:
      >
      > <a name='A1'></a>[/color]

      What's the point of the "onclick" portion? Looking at your site, it
      seems like it calls a JavaScript function containing only commented out
      lines, so it seems like an entirely superfluous part of your code, and
      might somehow be interfering with the operation of the normal link.

      --
      == Dan ==
      Dan's Mail Format Site: http://mailformat.dan.info/
      Dan's Web Tips: http://webtips.dan.info/
      Dan's Domain Site: http://domains.dan.info/

      Comment

      • David Dorward

        #4
        Re: Linking inside a doc using IE

        Michael Hill wrote:
        [color=blue]
        > I'm sorry. It did sound too easy a question to post. After I set back to
        > look at the code I found that I need a space in the anchor name attribute
        > like:
        >
        > <a name='A1'>&nbsp ;</a>[/color]

        Nasty. A better solution might be:

        <h2><a name="A1">A1</a></h2>

        or, if you don't mind ditching support for Netscape 4 and similar obsolete
        browsers...

        <h2 id="A1">A1</h2>

        --
        David Dorward http://dorward.me.uk/

        Comment

        Working...