P
P
PRIZRAKeee2019-11-11 14:14:23
JavaScript
PRIZRAKeee, 2019-11-11 14:14:23

How to track the click of the "Call" button in a standard browser modal window?

Hello. The site has a code with the phone number of the company:

<a href="tel:89999999999" class="phone">8 999 999-99-99</a>

When you click on a phone number in the browser, a standard modal window appears with a choice: either click on the "Cancel" button, or click on the "Call" button (it looks a little different in each browser, but in general it works about the same).
Question: Is it possible to track the onClick event on the "Call" button?
I don't think it can be tracked. But if I'm wrong, I'll be glad to hear your decision.
Update:
I apologize for not attaching an image.
5dc946d7d5187105366374.jpeg
On my phone, if I click on the company's cell number, there is a choice of application through which to call. For some, it immediately offers the choice of Cancel or Call to make. Is it possible to determine whether the user clicked on the Call button in this case? This modal window is not part of the site, it is from the browser itself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Ivanov, 2019-11-11
@ns174ru

there is no difference in the modal or in the normal version
hang up the click event listener on the class or, better, on the button id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question