URL Scheme for Phone Call

前端 未结 4 1653
我在风中等你
我在风中等你 2020-12-02 16:40

Much like the \"mailto\" URL prefix launches the user\'s default mail program and starts a new email with specified address, is there a similar URL scheme that would initiat

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 17:00

    The official standard for providing a telephone number as a URI is here: http://www.ietf.org/rfc/rfc3966.txt

    It basically says use tel: as the prefix, and start the number with +[international dialling code] before the number itself. You can put non-numeric characters as separators (e.g. -) but they must be ignored. So a London (UK) number might be:

    tel:+44-20-8123-4567
    

    A New York (US) number:

    tel:+1-212-555-1234
    

提交回复
热议问题