사용자가 요소의 콘텐츠를 복사하면 oncopy 이벤트 트리거.
예시
다음 코드를 실행하여 oncopy를 구현하는 방법을 배울 수 있습니다. 자바스크립트의 이벤트
<!DOCTYPE html>
<html>
<body>
<input type = "text" oncopy = "copyFunction()" value = "copy the text">
<script>
function copyFunction() {
document.write("Text copied!");
}
</script>
</body>
</html>