cut 예제
<input type="text" oncut="homzzang()" value="홈짱닷컴 Homzzang.com"> <p id="demo"></p> <script> function homzzang() { document.getElementById("demo").innerHTML = "잘라내기 완료"; } </script>
<input type="text" oncut="homzzang()" value="홈짱닷컴 Homzzang.com">
<p id="demo"></p>
<script>
function homzzang() {
document.getElementById("demo").innerHTML = "잘라내기 완료";
}
</script>
※ 사용자가 Ctrl + X (잘라내기) 할 때 실행.
cut 정의
cut 구문