Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] disable "ctrl+n"
- From: javascript@xxxxxxxxxx (Dan Costea)
- Subject: [Javascript] disable "ctrl+n"
- Date: Mon, 19 Nov 2001 16:18:39 -0800
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
- Follow-Ups:
- [Javascript] disable "ctrl+n"
- From: .ben
- [Javascript] no title on modal dialogs
- From: Dan Costea
- [Javascript] disable "ctrl+n"
- References:
- [Javascript] Loading two frames on one link
- From: Weber, M (Michael)
- [Javascript] Loading two frames on one link
- Prev by Date: [Javascript] Help wanted re. Daylight-Saving Time values
- Next by Date: [Javascript] disable "ctrl+n"
- Previous by thread: [Javascript] Loading two frames on one link
- Next by thread: [Javascript] disable "ctrl+n"
- Index(es):