<input type="text" onkeypress="if(event.charCode){this.value+=String.fromCharCode(event.charCode); return false}; return true" />