যখন ব্যবহারকারী উপাদানের পাঠ্য কাটে, তখন অনকাট HTML এ অ্যাট্রিবিউট ট্রিগার।
উদাহরণ
আপনি অনকাট বাস্তবায়ন করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন বৈশিষ্ট্য −
<!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>