-
September 10th, 2009, 06:00 AM
#1
Javascript for blocking keystrokes
Hi
Can anyone help me with javascript for blocking Ctrl-N keystroke. I want to ensure that user will not be able to open a new IE window by pressing Ctrl-N
Regards
Jaydeep
-
September 10th, 2009, 08:27 AM
#2
Re: Javascript for blocking keystrokes
Why don't you want to prevent people from opening up a new IE window ¿
-
September 10th, 2009, 09:03 AM
#3
Re: Javascript for blocking keystrokes
Did you search Google first? A simple search returned the following: http://forums.devarticles.com/javasc...ning-7531.html
Just a small clarification...Even though you can block keystrokes, you cannot block the menu nor context menu from providing you with new window options.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
September 10th, 2009, 09:07 AM
#4
Re: Javascript for blocking keystrokes
If you want to have only one instance of your application per user, then you can set a flag in your database when a user logs in, and remove that flag when he logs out. When he tries to log in , you check if the flag is set or not. If the flag is set, you branch the user to a default screen saying "you are already connected".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|