Well, it's possible to add the simple alert("Message"); line right after document.execCommand('copy');
But may not be the true result as execCommand is the deprecated feature of the browsers now.