अवलोकन
oncopy इवेंट तब ट्रिगर होता है जब उपयोगकर्ता एलिमेंट का कंटेंट कॉपी करता है।
उदाहरण
<!DOCTYPE html> <html> <body> <input type = "text" oncopy = "copyFunction()" value = "copy the text"> <script> function copyFunction() { document.write("Text copied!"); } </script> </body> </html>