I think the easiest way (and work in all browsers) is to watch the keys pressed by the user, and if he press CTRL + C, save some data that you want to copy to some variable.
I mean something like this:
var myClipboardVariable; document.onkeyup = function(e){ if ((e.key == 'c') && e.ctrlKey){
source share