#head>
#script>
function upperCase(){
var x=document.getElementById("txtNama").value;
document.getElementById("txtNama").value=x.toUpperCase();
}
#/script>
#/head>
#body>
Nama :
#input type="text" id="txtNama" onBlur="upperCase()"/>
#/body>