দি চাকার এট্রিবিউট ট্রিগার করে যখন মাউস হুইল কোনো এলিমেন্টের ওপরে বা নিচে রোল করে। আপনি অনহুইল বাস্তবায়ন করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন বৈশিষ্ট্য −
উদাহরণ
<!DOCTYPE html>
<html>
<body>
<h3 id = "myid" onwheel = "mouseWheel()">
This is demo heading.
</h3>
<p>Click above and use mouse wheel to change the heading color.</p>
<script>
function mouseWheel() {
document.getElementById("myid").style.color = "red";
}
</script>
</body>
</html>