Code:
<!DOCTYPE html>
<html>
<body>
<p>When the user releases a key in the input field, Then function transforms the character to uppercase.</p>
Enter your name:
<input type="text" id="fname" onkeyup="myfunction()">
<script>
function myfunction()
{
var x=document.getElementById("fname");
x.value=x.value.toUpperCase();
}
</script>
</body>
</html>
No comments:
Post a Comment