[Javascript] disable "ctrl+n"
Dan Costea
costea at ssi-schaefer-noell.com
Mon Nov 19 18:18:39 CST 2001
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
More information about the Javascript
mailing list