Check If Control/Shift/Alt Key Is Pressed In JavaScript:-

  1. We need to check evt.CtrlKey property to check if Ctrl Key is pressed.
  2. This code only works on IE and not on FireFox..
  3. The same code can be used to check if Shift & Alt Key is Pressed, by replacing CtrlKey with respective keys in evt.CtrlKey

Comments

Popular posts from this blog

SQL Server 2005 - Showing ResultSet in a Single Row OR in a comma separated string format.

Cross Apply Incorrect syntax near '.'

Alert : can not set credentials for principal sa