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

Weekend Gateway Trip - Shrivardhan

Cross Apply Incorrect syntax near '.'

Apply CSS Class based on Browser