输出

tel:13988888888

示例代码

This is the demo for registerProtocolHandler.

HTML:

  <h1><a href="tel:13988888888"> tel:13988888888</a></h1>
  <script>
    if (navigator.registerProtocolHandler){
      navigator.registerProtocolHandler("tel", "http://miketaylr.com/pres/capjs/demo/?%s", "myProtocolHandler");
    }
  </script>