Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question