<html> <body> <fotm> <input id=i> </form> <script> i.oninput=function(){this.value=this.value.replace(/,/, ".")} </script> </body> </html>