If it works at all, I'm sure that keyup will definitely not work. Try
onkeydown. I know I can capture F1 in the key down in FF and the FF
help will not open
On 9/18/07, Chetan Bob <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> <script type="text/javascript">
> document.onkeyup = KeyCheck;
>
> function KeyCheck(e)
>
> {
>
> var KeyID = (window.event) ? event.keyCode : e.keyCode;
>
>
> switch(KeyID)
>
> {
>
> case 116: {
> event.keyCode = 0;
> event.returnValue = false;
> document.forms['myForm'].submit();
> break;
> }
>
> case 16:
>
> window.location
> ="http://www.yahoo.com";
> break;
>
> }
> }
>
>
> Hear I cant get case 116 which is F5 Refresh keycode ....other than
> functionkey code are ok like 16 of shift button ....
>
> Also
> document.forms['myForm'].submit();
>
> is seems not working it says error myForm Dosent have submit attribute ..
>
> --
> View this message in context:
> http://www.nabble.com/F5-Keycode-is-not-available-in-javascript-tf4471972.html#a12750800
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>