简体   繁体   English

从 html 输入文本创建链接

[英]create link from html input text

I want to know if it is possible to generate a link ( <a href = "tel : ) from html inputs. I explain myself;我想知道是否可以从 html 输入生成链接( <a href = "tel : )。我解释一下;

I have 3 html text inputs and those 3 inputs must be concatenated to result in telephone dialing.我有 3 个 html 文本输入,必须连接这 3 个输入才能进行电话拨号。 Example例子

view image看图

In simple words I need that the result be a <a href = "tel : so I can click and redirect to a softphone简单来说,我需要结果是<a href = "tel :这样我才能点击并重定向到软电话

Thanks :)谢谢 :)

There are several ways to implement this.有几种方法可以实现这一点。

Here is a similar article and you can find out the preferable answer there.这是一篇类似的文章,您可以在那里找到更可取的答案。

how to call a phone number through javascript without using tag? 如何在不使用标签的情况下通过javascript拨打电话号码?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM