Here is what I did for the callto:
protocol, which works in Firefox 24 and IE 10 (I have not tested other browsers):
First, your protocol must already be registered or your computer will not recognize it. Secondly create a hidden link in your markup with your protocol as href. When I click on the button ( #calltobutton
), it sets the value of the hidden link ( #clicker
), and then clicks on it, forcing the browser to perform the action.
Then do the following:
$('#calltobutton').click(function () { initCallTo(1234567890); }); function initCallTo(callto) { $('#clicker').attr('href', "callto:" + callto); $('#clicker')[0].click(); }
Now the callto link click method is, but weird. You can learn more about this in this thread .
source share