-
Thank you @LeonidS , that works really well.
It would be nice if it closed the window on click or gave a notification that it has been copied. Is it possible?
Thank you @LeonidS , that works really well.
It would be nice if it closed the window on click or gave a notification that it has been copied. Is it possible?
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.