From usability point of view:
In most of website we can see a link which do an action such as "Delete" link which deletes a record for example, "Add Comment", "Vote Up", ....
Is it better to put the javascript action in the href attribute of the anchor html tag:
<a href="javascript:RemoveMe(132);"> Remove</a>
Or do it in an event:
<a href="#" onlcick="RemoveMe(132)"> Remove</a>
The different between these 2 ways, is how the user will see the link in his browser status bar.
In the fist way the user will see in the status bar: javascript:RemoveMe(132);
But in the second way the user will see in the status bar: www.example.com/pagesample/#
Which is better from usability point of view? which is the common to use?