Is it possible to programmatically call a telephone number in JS?

前端 未结 5 850
挽巷
挽巷 2021-02-08 06:53

So basically right now I can create a button with an A tag that has an href=\"tel:XXXXXXXXXXX\" and if a user clicks / taps on that it will bring them into their phone applicati

5条回答
  •  佛祖请我去吃肉
    2021-02-08 07:36

    For this you will require to add this in the config.xml first

    
    

    then call it like:

    document.location.href = "tel:XXXXXXXXXX";
    

    Whitelist Guide

提交回复
热议问题