I'm assuming there's got to be a way to get an <a>
tag to automatically dial a phone number, because Google does it, but how?
Just using a tel:
href opens a dialer, but it doesn't begin the phone call like when you click on the "Call" button (see below) from Google search results on mobile.
It looks like they're using JS to achieve this, but I'd love to know how so we can implement this into our call links on client websites. Clicking a button to call and also having to click the "dial/call" button in your dialer creates an extra barrier for conversions that I'd love to see eliminated. Any help is greatly appreciated! Looked up a local guitar shop that I clicked to call yesterday (which automatically started the phone call) and opened the inspector. The call link html is highlighted.
答案 0 :(得分:1)
此行为取决于操作系统/浏览器组合。
此功能在您的屏幕截图中起作用的原因是在Google(Android)设备上使用了Google Chrome。如果您在Android上使用FireFox或在IOS上使用Safari观察到相同的链接,则会看到不同的行为。
有关更多信息,请参考使用Intents