[Javascript] disable "ctrl+n"

.ben ben at babelfish.co.uk
Mon Nov 19 10:42:43 CST 2001


Just out of interest, how do you intend to stop them doing File|New or
simply opening another browser from the desktop/program group shortcut?

 .b

----- Original Message -----
From: "Dan Costea" <costea at ssi-schaefer-noell.com>
To: <javascript at LaTech.edu>
Sent: Tuesday, November 20, 2001 12:18 AM
Subject: [Javascript] disable "ctrl+n"


> Hi,
>
> I work with IE5.5 and I don't want to let the user to use ctrl+n. I made a
> function that I call from <body> on onKeyDown event:
>
> function notAllowed (nKeyCode)
> {
>     if ( (78 == nKeyCode) && (event.ctrlKey) ) {
>         alert ("Sorry, not allowed!");
>     }
> }
>
> The problem is that page has many objects and it is loading slowly. So the
> user can press ctrl+n before the page is load. How can I stop him to do
> that?
>
>
> Thankyou, Dan Costea
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>




More information about the Javascript mailing list