209Chapter 15 .Generic HTML Element Objects function (invoked (Web hosting contract)
209Chapter 15 .Generic HTML Element Objects function (invoked by an onKeyPress event handler) makes sure text entered into a text field is all uppercase, even if you type it as lowercase: function assureUpper() { if (event.charCode >= 97 && event.charCode <= 122) { event.charCode = event.charCode - 32 } } Doing this might confuse (or frustrate) users, so think carefully before implementing such a plan. To prevent a keyboard key press from becoming a typed character in a text field, the onKeyPressevent handler prevents the default action of the event. For example, the following (NN4+, IE4+) HTML page shows how to inspect a text field s entry for numbers only:
If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.