[thelist] Mozilla: trapping keyboard combo
Scott Blanchard
octigonuser at hotmail.com
Wed Feb 18 12:05:59 CST 2004
How can one detect if a user has typed CTRL+8 in mozilla/gecko browsers?
Below is the code I use for IE, but I can't figure how to do it for Moz. Any
help much appreciated. Crunch time for this project!
document.onkeydown = checkHandles;
function
checkHandles(e){if(document.all){if((window.event.ctrlKey)&&(window.event.keyCode==56)){alert("IE
user"}else{/*Netscape*/}}
_________________________________________________________________
Click, drag and drop. My MSN is the simple way to design your homepage.
http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/
More information about the thelist
mailing list