F
F
Finesse2014-03-29 04:22:41
JavaScript
Finesse, 2014-03-29 04:22:41

How can I make mobile devices recognize phone numbers in content added dynamically via JavaScript?

There is a phone number on the HTML page, it is recognized by mobile device browsers (Opera Mobile, Safari and others), highlighted as a link and endowed with functionality (when clicked, the dialer interface opens with the entered number). There is also an area that is initially empty and in which the content is created dynamically via JavaScript. There are phone numbers in this content, but they are not recognized by browsers, although they are set in the same form as the "static" number.
How to make browsers recognize numbers in dynamic content? If this is not possible, then how to manually endow them with this functionality?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Michael, 2014-03-29
@Finesse

Manually, you can <a href="tel:+79001234567">+79001234567</a>add a condition like this, if you wish, to wrap the phone in a link or not, depending on the browser.

A
Anatoly, 2015-01-12
@codefucker

blog.toliklunev.ru/all/psevdoprotokol-tel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question