<!DOCTYPE html>
<html>
<body>
Enter your name: <input type="text" id="fname" onblur="myFunction()">
<p>When you leave the input field, a function is triggered which transforms the input text to upper case.</p>
<script>
function myFunction() {
var x = document.getElementById("fname");
x.value = x.value.toUpperCase();
}
</script>
</body>
</html>
--------------------------------------------------------------------------------------------------
Enter your name:
When you leave the input field, a function is triggered which transforms the input text to upper case.
---------------------------------------------------------------------------------------------------
프레임에 소문자로 입력하면 마우스 커서가 벗어 낫을때 알아서 대문자로 바꿔준다