What does “[removed]void(0)” mean?

前端 未结 14 1354
说谎
说谎 2020-11-21 15:23
login

I\'ve seen such hrefs many times, but I don\'t know what exactly

14条回答
  •  离开以前
    2020-11-21 16:12

    You should always have an href on your a tags. Calling a JavaScript function that returns 'undefined' will do just fine. So will linking to '#'.

    Anchor tags in Internet Explorer 6 without an href do not get the a:hover style applied.

    Yes, it is terrible and a minor crime against humanity, but then again so is Internet Explorer 6 in general.

    I hope this helps.

    Internet Explorer 6 is actually a major crime against humanity.

提交回复
热议问题