Feedback on: irt.org FAQ Knowledge Base Q954
Worth:
Not worth reading
Comments:
It is incorrect. It is possible to capture function keys being pressed with onkeydown. q.v. the following code:
document.onkeydown = keyhandler;
function keyhandler(e) {
if (document.layers)
Key = e.which;
else
Key = window.event.keyCode;
if (Key != 0)
alert("Key pressed! ASCII-value: " + Key);
}
Comments:
This script does not capture an Alt key event in either IE 5 or NN4 on my computer. In fact there does not seem to be any way to test for an alt key press in Navigator (ref: http://tech.irt.org/articles/js195/index.htm) although I can in IE through other means than the one presented here.
Length:
Too short
Technical:
Not technical enough
Comments:
the code mentioned is not working fine except for the ordinary keys. I mean, when pressed control, shift or alt not giving any output into the controls as mentioned in the code.
Can anyone help me for my following problem:
I want to diable the refresh button which i can hide the tool bar but I SHOULD ALSO AVOID PRESSING F5 BY THE USER within the browser.
Awaiting your quick reply.