M
Matthew
I have this code snippet that is ignoring a Tab key and executing
something(); on all other key-presses. How would I efficiently modify
this to include a second key, such as backspace (KeyCode 8)?
onkeydown="if ((event.keyCode||event.which) != 9) { something(); }"
Also, not a big deal -- but how would I also factor a "Shift-Tab" into
the mix? I know Tab is a KeyCode 9, but how do you express the
Shift(16) into that?
something(); on all other key-presses. How would I efficiently modify
this to include a second key, such as backspace (KeyCode 8)?
onkeydown="if ((event.keyCode||event.which) != 9) { something(); }"
Also, not a big deal -- but how would I also factor a "Shift-Tab" into
the mix? I know Tab is a KeyCode 9, but how do you express the
Shift(16) into that?