Question

call from javascript using chrome extension

  • 20 July 2017
  • 1 reply
  • 535 views

The Chrome extension works great, but I need to run a function before dialing the number from my website. Like:


<button type='button' onclick=makecall('".$result->PHONE."')>".$result->PHONE."</button>


<script>

function makecall($number){


alert("tel:"+thenumber);

window.location.href("tel:"+$number);

}

</script>


Is there a function in the chrome extension I can call to send the number to the dialer?


1 reply

RingCentral Chrome Extension is not open source and we don't provide any public API for it. So I am afraid that it doesn't exist.

Reply