Use the HTML DOM to assign an "onchange" event to an input element.
When you leave the input field, a function is triggered which transforms the input text to upper case.