Results 1 to 2 of 2

Thread: a href="tel" Javascript Equivalent?

  1. #1
    Join Date
    Sep 2010

    a href="tel" Javascript Equivalent?

    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.

  2. #2
    Join Date
    Jun 2012

    Found a solution?

    I'm looking for the same solution, have you found anything that solves this?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center