There is a difference in functionality, the first doesn't attempt to process a link. The second does.
However, I agree with Coronatus - both methods are not ideal. I would suggest researching unobtrusive JavaScript (perhaps with jQuery) as you could dynamically add a click event to the element.