Possible Duplicates:
Href for Javascript links: “#” or “javascript:void(0)”?
Why is it bad practice to use links with the javascript: “protocol”?
As question says . .
Which approach is better ?
<a href='javascript:func()' >blah</a>
or
<a href='#' onclick='func()' >blah</a>
Neither.
Use this:
That way if the user has JS disabled, they will be taken to
javascript-disabled-pageand the browsing experience isn’t ruined.