I know that <a href="javascript:void(0)">Link</a>
will just do the job,
but what I intend to do is to specify a href, but will not jump to it when being clicked, just like:
<a href="http://mydomain.com" onclick="...">Link</a>
When I click on this link, I'd just like the onclick
is invoked, whereas href is just a 'show' without jumping to http://mydomain.com
.
How could this be done by javascript or css? Thanks a lot!