Saturday, August 25, 2012

jquery – simple javascript keystroke count

I\’m developing an online study/survey where I need to count the number of keystrokes that a participant makes. I am asking them to type lrlrlrlrlrlrl… in a text field to simulate walking. Turns out many of the participants (as evidenced by the time spent on the task) are copying and pasting.


I need something that will count keystrokes so I can identify participants who completed the task as requested. The study is programmed in Coldfusion and I was thinking about some sort of javascript/onkeydown/hidden file field combination, but I am not really a programmer.


Any help would be appreciated. Thanks.






Rating: 5 out of 5 based on 3 ratings



The post jquery – simple javascript keystroke count appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/jquery-simple-javascript-keystroke-count.html

No comments:

Post a Comment