사용자가 요소의 텍스트를 자르면 잘라내기 HTML의 속성 트리거
예시
다음 코드를 실행하여 oncut을 구현할 수 있습니다. 속성 -
<!DOCTYPE html>
<html>
<body>
<input type = "text" oncut = "display()" value = "Cut me">
<h2 id = "test">Try to cut the above text.</h2>
<script>
function display() {
document.getElementById("test").innerHTML = "Your cut text worked!";
}
</script>
</body>
</html>