A
A
Artem Andreev2019-09-06 10:11:53
JavaScript
Artem Andreev, 2019-09-06 10:11:53

What is the difference between "Copy email address" and "Copy" in Google Chrome?

I am sending goals to GTM by event, there is such a handler:

$('a[href^="mailto:"]').bind('copy', function(e){
     dataLayer.push({ 'event': 'email-copy'});
   });

If you select the text and press Ctrl + C - it is sent,
If you select the text and right-click, select "Copy" in the menu - it is sent,
But if you right-click and select "Copy email address" in the menu, it is not sent.
Has anyone caught such an event?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question