This example uses the HTML DOM to assign an "onkeyup" event to an input element.
A function is triggered when the user releases a key in the input field.
The function transforms the input field to upper case: