How to Execute JS action on an Html link Click

I wonder how to achieve getting an html link to trigger a JS action rather than the usual url target action. What I need to do is to get JS to collect data from an xml rest service and do something with it. Thanks.
1 person has
this question
This topic is no longer open for comments or replies.