I have the following code:
onkeyup = function(e) {
if (e.keyCode == 77) { // the 'm' key
setTimeout(function () {
... // my set timeout stuff
}
The problem is that every time I press the m key, my setTimeout re executes. How can I keep it so that only if I press & hold once, the setTimeout executes. (any more times and nothing should executed).
Thanks, should be simple enough I hope.