href+#+ie5

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

    href+#+ie5

    I have an button:

    <ul class="buttonbi g" onclick="javasc ript: change_location ('link')">
    <li><a href="#" title="test">ex ample</a></li>
    </ul>

    The problem is that's not working in IE5.0. The reason is that I use "#"
    in <a>. Is there any other way to solve it ?

    Maybe I have to give up and use link in <a href="link"> ?

    --
    Regards, Cezar.
    =============== =============== ==
  • jmm-list-gn

    #2
    Re: href+#+ie5

    Cezar wrote:[color=blue]
    >
    > <ul class="buttonbi g" onclick="javasc ript: change_location ('link')">
    > <li><a href="#" title="test">ex ample</a></li>
    > </ul>
    >[/color]
    Two errors:
    1. remove "javascript :"
    2. href="#" points to nowhere.
    It's interpretation is undefined and varies with how each browser
    decides to deal with it.


    --
    jmm dash list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)

    Comment

    • jmm-list-gn

      #3
      Re: href+#+ie5

      Cezar wrote:[color=blue]
      >
      > <ul class="buttonbi g" onclick="javasc ript: change_location ('link')">
      > <li><a href="#" title="test">ex ample</a></li>
      > </ul>
      >[/color]
      Oops. A third error.
      3. change onclick to "change_locatio n('link'); return false;"

      --
      jmm dash list (at) sohnen-moe (dot) com
      (Remove .AXSPAMGN for email)

      Comment

      Working...