我觉得这段没多大实质作用
比如下面两个应该是一样的作用
<a href="#" onclick=check()>
<a href="void(0)" onclick=check()>

解决方案 »

  1.   

    javascript:void(0)相当于取消链接。
      

  2.   

    http://www.hongen.com/pc/homepage/javascript/sample/nodownload.htm
      

  3.   

    例:
    aa();
    void(0)<script>
    function aa()
    {..}
    </script>这是什么意思?
      

  4.   

    The void() function causes the browser to take no redirection action upon clicking. In most modern, javascript-literate browsers you can accomplish the same disarming task by adding a "return false;" at the end of the onClick event code, but you'd still need to provide something in for the href property, so might as well make it javascript:void(0).you can actually have it invoke a javascript function like so:
    <a href="javascript:void(alert('You clicked.'))" >sss</a>http://www.hashemian.com/blog/2005/05/javascript-void-function-and-html.htm大概意思是防止当前页面重定向到其它页面或重新加载.