This  script (which could be more simple)
removes extra spaces between words and trailing spaces (and commas)
and turns all letters into UPPER CASE.It does not remove extra initial spaces.
 

This function can be combined with other javascripts (for example, those that check answers) so that those taking a drill will not need to be so careful about extra spaces or capitalizing correctly.

Put your text Here. 
Get your text Here.



Hit Counter hits since Dec. 10, 1999.
Copyright Dec. 1999 Jean Alvares

Click here to go to an example of this script used with a script that checks the answer of an exercise.
 
 

Back to my Guide to Javascripts page