I was wondering if there's any way to write a Javascript equivalent of the XHTML <a href="tel:xxx"> tag. I'm working on a mobile site, and the main reason I want to be able to do this is that I need to implement Google tracking on clicking the link.
Adding an onClick event to the link doesn't work, since as soon as the user presses the link, the browser is shoved into the background before any scripts can run on it, so the best solution I can think of is to make a click on the link run the Google Analytics code first, and then trigger the calling function, but I can't seem to find how to do this, or if such a method even exists.
Bookmarks