hi I have "assembled" this script to disable the use of the ctrl key, however it doesnt only disable the ctrl key,
it disables all keys!
it is run by having onKeyDown in the body tag of the doc,
it only needs to run in IE and it is just so people can't open a new window,
any ideas?
it disables all keys!
it is run by having onKeyDown in the body tag of the doc,
it only needs to run in IE and it is just so people can't open a new window,
Code:
function disableCtrl(e) {
if (document.all) {
e = window.event;
}
var key;
if (document.layers)
key = e.which;
if (document.all)
key = e.keyCode
window.event.returnValue = false;
}
any ideas?