可能重複:
What is the difference between the different methods of putting JavaScript code in an <a>?href =「javascript:jsfunction();」有什麼不同?和onclick =「javascript:jsfunction();」
什麼
<a href="javascript:jsFunction();">test</a>
和
之間不同<a href="javascript:void(0);" onclick="javascript:jsFunction();">test</a>
非常感謝你多。
[將JavaScript代碼放入的不同方法之間有什麼區別?](http://stackoverflow.com/questions/245868/what-is-the-difference-between-the-different-methods-of-放入-javascript-code?rq = 1) –