যখন ইউজার এলিমেন্টের কন্টেন্ট কপি করে, তখন oncopy ইভেন্ট ট্রিগার হয়।
উদাহরণ
<!DOCTYPE html> <html> <body> <input type = "text" oncopy = "copyFunction()" value = "copy the text"> <script> function copyFunction() { document.write("Text copied!"); } </script> </body> </html>