Simply copy and paste the following code inside an html page and run it from a browser (tested on IE & Mozilla).
If you want to see the live result (we believe this is the best way to learn what is the script about), try it here (new window).
Notes:
- simply change the data according to your needs and the form;
- there might be some missing control when you type continuously;
- If you paste the data inside the form, it won't be controled as well (we should also use the onpaste event control);
More information here:
MSDN -- Events DHTML
Post the first comment now
or discuss about it at this address:
Forum - Javascript