oncut 이벤트는 요소의 내용이 잘릴 때 발생합니다. 다음 코드를 실행하여 oncut으로 작업하는 방법을 배울 수 있습니다. 자바스크립트의 이벤트 -
예시
<!DOCTYPE html>
<html>
<body>
<input type = "text" oncut = "cutFunction()" value = "cut the text">
<script>
function cutFunction() {
document.write("Text cut!");
}
</script>
</body>
</html>