Forum Moderators: open
function captureKey(e) {
var myChar;
e = window.event;
myChar = String.fromCharCode(e.keyCode);
}document.onkeypress = captureKey;
Then you would need to test for the key press of both Ctrl and X - you may need to check if Control uses the onKeyup. Some keys use press and some keys use up. Also, Ctrl-X is a browser command for Cut... you may need to add a return false onto your code to negate this command.