I need to change the '.' Character in the text input to ',' when typing. In IE, I change the property of the keyCode event in the keypress event, like this
document.getElementById('mytext').onkeypress = function (evt) { var e = evt || window.event; if (e.keyCode && e.keyCode==46) e.keyCode = 44; else if (e.which && e.which==46) { e.which = 44; } };
but it seems that in Firefox it is not possible to change the characters entered in key events. Any suggestions?
javascript javascript-events
Pier luigi
source share