key_pressed(event)





6
Date Submitted Fri. Jul. 20th, 2007 11:17 PM
Revision 1 of 1
Helper lavaramano
Tags DOM | JavaScript | Key | onkeyup
Comments 0 comments
Returns the keycode of the key we wrote on a textarea/input. works on IE and Firefox

function key_pressed(e){
        var keynum = (window.event) ? e.keyCode : e.which;
        return keynum;
}
 

mauro l

lusers.com.ar/
______________________
// a sphincter says what?

Comments

There are currently no comments for this snippet.

Voting