McKirahan wrote on 12 dec 2004 in comp.lang.javascript
:
<input type="text" name="txt" onkeyup="this.value =
this.value.replace(/,/g,'.')">
<input name="txt" value=""
onkeyup="this.value=this.value.replace(/,/,'.')">
if the value starts at empty,
there never can be more than one comma per keyup,
but for drag-drop and paste, where you were screwed anyway.
one would wish for:
onDragdrop should work only for a window,
and onPaste is nonexistend?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)