call from javascript using chrome extension

  • 1
  • Question
  • Updated 1 year ago
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?
Photo of Tommy Figgs

Tommy Figgs

  • 70 Points
  • frustrated

Posted 1 year ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,918 Points 5k badge 2x thumb
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.