onkeyup इवेंट तब ट्रिगर होता है जब कोई कुंजी छोड़ी जाती है।
उदाहरण
JavaScript में onkeyup इवेंट के साथ काम करना सीखने के लिए निम्न कोड चलाएं:
<html>
<head>
<script>
<!--
function sayHello() {
var str = document.getElementById("subject");
str.value = str.value.toLowerCase();
}
//-->
</script>
</head>
<body>
<p>Enter subject below in upper case and see what happpens.</p>
<input type="text" onkeyup="sayHello()" id="subject">
</body>
</html>