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 19:07:28 -0800
I use IE as user interfaces for a project. I open all pages that the user
need to see and they are without any toolbar. They are opened something like
this:
var win = window.open ("about:blank", "_blank",
"top=0,left=0,width=0,height=0,resizable=yes,scrollbars=yes");
the user don't have even the context menu (I made a project dependent
context menu).
> 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@xxxxxxxxxxxxxxxxxxxxxx>
> To: <javascript@xxxxxxxxxx>
> 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@xxxxxxxxxx
> > http://www.LaTech.edu/mailman/listinfo/javascript
> >
>
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> http://www.LaTech.edu/mailman/listinfo/javascript
>
- References:
- [Javascript] Loading two frames on one link
- From: Weber, M (Michael)
- [Javascript] disable "ctrl+n"
- From: Dan Costea
- [Javascript] disable "ctrl+n"
- From: .ben
- [Javascript] Loading two frames on one link
- Prev by Date: [Javascript] disable "ctrl+n"
- Next by Date: [Javascript] How can i create new <OPTION> elements of a visible <SELECT> element from a hidden <SELECT> element ?
- Previous by thread: [Javascript] disable "ctrl+n"
- Next by thread: [Javascript] no title on modal dialogs
- Index(es):