Let the hyperlink not jump after the click, you can use the href = "#", but this # will anchor to the top of the page
After clicking the link does not jump can be set to
1.<a href= "javascript:void (0);" >javascript:void (0);</a>
2.<a href= "javascript:;" >javascript:;</a>
3.<a href= "" onclick= "return false;" >return false;</a>
4.<a href= "#" onclick= "return false;" >return false;</a>
5.<a href= "# #" >##</a>
6.<a href= "# # # >####</a>
7.<a href= "#all" > #all </a>
If you want to click the hyperlink call JS method can be set to
1.<a href= "javascript:void (0)" onclick= "Jsfun ()" >jsFun</a>
2.<a href= "#" onclick= "Jsfun (); return false;" >jsfun (); return false;</a>
3.<a href= "#" onclick= "alert (1); event.returnvalue=false;" >alert (1);event.returnvalue=false;</a>
1.javascript:void (0) not recommended
2. Link (href) direct use of javascript:void (0) in IE may cause some problems, such as: Cause GIF animation to stop playback, so the safest way is to use "# # #". To prevent clicking on a link and jumping to the top of the page, the OnClick event will return false.
3. If you just want to move the mouse over, turn into a hand, you can use
<span style= "Cursor:pointer" onclick= "Jsfun ()" > Hand type!</span>
Let hyperlinks do not jump after the click, you can use the href = "#", but this # will anchor to the top of the page after clicking on the link will not jump can be set to