Javascript for blocking keystrokes
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 4 of 4

Thread: Javascript for blocking keystrokes

  1. #1
    Join Date
    Sep 2009

    Javascript for blocking keystrokes


    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


  2. #2
    Join Date
    Jul 2001
    Sunny South Africa

    Re: Javascript for blocking keystrokes

    Why don't you want to prevent people from opening up a new IE window ¿

  3. #3
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002

    Re: Javascript for blocking keystrokes

    Did you search Google first? A simple search returned the following:

    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.

  4. #4
    Join Date
    Apr 2009

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center