Deliberately inserting a keystroke "bug" into a text field.
I'd like to program a "bug" into a proofreading test form I'm working on. The form is just a text field and my idea is that every so often, when a character is pressed on the keyboard, the field will select a different character to input into the field rather than the one pressed based on the character count.
Input example: The quick brown fox jumps over the lazy dog.
Output example: The quick lrown fox tumps overjthe lazy nog.
In the output example, every 10th keystroke is replaced by a letter 10 places after the letter pressed on the keyboard.
(A-Z & space = 1 through 27)
I'm not a whiz with JavaScript, but not entirely uneducated either. The only part that's eluding me is the "I'm pressing 'A'! Why is the &$+!?#@ field printing a 'K'?!" effect. Can such a thing be done?
Thanks in advance!
