[Javascript] Disabling of F1 key and launching custom screen

BEKIM BACAJ trojani2000 at hotmail.com
Sun Jan 26 20:54:35 CST 2003


[F1 has it's own event handler, no need to capture keyCode]

Please try this:

<SCRIPT>
function dsble_Help(){
//replace this -alert- with your help scripts
alert('confirmation that event will trigger the F1 command')
return false;
}
document.onhelp=dsble_Help
</SCRIPT>

Regards!




>From: "Andrew Gibson" <andyg at ihug.co.nz>
>Reply-To: javascript at LaTech.edu
>To: <javascript at LaTech.edu>
>Subject: Re: [Javascript] Disabling of F1 key and launching custom screen
>Date: Thu, 23 Jan 2003 20:38:13 +1300
>
>I don't think you can disable the F1 key, I've tried the same thing. Ended
>up having to use the F12 key, but any other than F1 I think you can use.
>
>Andrew Gibson
>
> >>>>>>>>>>>>>>>>>>>>>>
>Subject: [Javascript] Disabling of F1 key and launching custom screen
>
>
>Hi,
>
>How do I disable the IE F1 KEYPRESS from launching the IE help. I am
>currently able to launch my custom help by trapping the keyCode but the IE
>help also launches. Tried return false returnValue false but in vain.
>
>Any clues.
>Thank-you for your time.
>
>Denzil
>_______________________________________________
>
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus




More information about the Javascript mailing list