What's a reliable method for setting up telephone links for mobile browsers?

后端 未结 3 1433
攒了一身酷
攒了一身酷 2021-01-04 01:16

I\'m working on a quick page intended for mobile browsers. While there is little consistency between browsers on cell phones (the target audience), I have a phone number th

3条回答
  •  忘掉有多难
    2021-01-04 01:39

    What I eventually came up with was a link that worked like this:

    1-888-123-4567
    

    This has worked on every phone tested so far, including Android, BlackBerry and some very clunky older phones. From what I gather, the structure of the link works like so:

    WTAI references the Wireless Telephony Application Interface. The wp/ refers to the WTAPublic functions. The mc; is the makeCall function, and then of course you have the phone number. Similarly, you can do a link like this:

    Add to addressbook: 1-888-123-4567
    

    This is the same except mc; has been replaced by ap;, which refers to the addPBEntry function. This adds the phone number to your address book or similar stash of phone numbers.

    These two sites were helpful in my research:

    • http://www.oreillynet.com/wireless/2004/02/06/mobile_browsing.html
    • http://www.informit.com/articles/article.aspx?p=22182&seqNum=4

提交回复
热议问题