Hi!
I have an html page and would like to trap the explorer's special key combinations, such as Fx or CTRL-x. I tried the following with no luck:
<body onKeyPress="trapKeys()">
<script>
function trapKeys() {
alert("key "+String(window.event.keyCode));
window.event.returnValue = false;
}
</script>
...
Anybody ever tried this?
thanxs,
alej
I have an html page and would like to trap the explorer's special key combinations, such as Fx or CTRL-x. I tried the following with no luck:
<body onKeyPress="trapKeys()">
<script>
function trapKeys() {
alert("key "+String(window.event.keyCode));
window.event.returnValue = false;
}
</script>
...
Anybody ever tried this?
thanxs,
alej