There are sms and call links on the page. I want to log the event (use ajax to get a URL) when the links are clicked.
The links ("sms:" and "tel:") run on the phone, so the dialog(dial message and sms app) show up immediately after the links are clicked.
But the href not work when i add "onclick" to the links.
How to log the event quietly and not effect the normal process?
Thanks a lot!
<a id="SmsButtonId" href="sms:?body=testBody">sms</a>
<a id="CallButtonId" href="tel:+1234567890">call</a>