Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
18
rated 0 times [  19] [ 1]  / answers: 1 / hits: 22681  / 15 Years ago, tue, october 27, 2009, 12:00:00

what is the best way to stop my onclick links from causing the page to jump to the top.



<a name=point1>
<a href=#point1 onclick=blahblah>

<a href=javascript: onclick=blahblah>

<a href=javascript:null; onclick=blahblah>


Or something else?


More From » javascript

 Answers
70

I always use



<a href=javascript:void(0) onclick=blahblah>

[#98439] Thursday, October 22, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aricl

Total Points: 215
Total Questions: 91
Total Answers: 94

Location: Venezuela
Member since Thu, Jul 15, 2021
3 Years ago
;