S
S
Sergey2021-07-06 18:03:41
JavaScript
Sergey, 2021-07-06 18:03:41

How to allow a phone call in JS, but disable other events?

Good afternoon.

Such a code - there is a block, it contains a phone number.
By clicking on the block - there was a Js event.

How to make it so that by clicking on the phone number *** dialing would take place, in the event to prohibit?

Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-07-06
@Aetae

<a onclick="event.stopPropagation()">***</a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question