i'd like to test to see if a user has pressed a key combination like this...
is this smart though? this page will have many text areas and text fields on it as well. is it too much to ask the browser to evaluate the value of a keystroke each time a key is pressed?Code:<script type="text/javascritpt"> function key(e) { if (e.keyCode == 18) { alert('whatever'); } } </script> <body onkeypress="javascript:key(event);"> blah blah blah </body>
any guidance would be much appreciated. thanks!



Reply With Quote



Bookmarks