determine which key was pressed and its type



determine which key was pressed and its type..

Answer / ramu

to know which key was pressed we can use window.event.code.
it will return the ASCII code of the key.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JavaScript Code Interview Questions

Code to Block submission of form by pressing Enter Key

0 Answers   TED,


Create a ViewState Property?

0 Answers   TCS,


code to detect availability of cookies

0 Answers  


how to create an anonymous function

0 Answers  


how to copy form data between different pages

0 Answers  






validation code / function to allow only NUmbers in a text box

3 Answers   GE,


how to create a Custom Scrollbar

0 Answers  


Reading which Non-Character Key was pressed

0 Answers  


How to test whether two strings are equal or not ?

1 Answers  


how to pass data between pages using URLs

1 Answers   Symantec,


program that will accept any name and will be stored in an array

2 Answers  


code to display a Countdown Timer (dynamic)

2 Answers  


Categories
  • PHP Code Interview Questions PHP Code (33)
  • JSP Code Interview Questions JSP Code (6)
  • ASP Code Interview Questions ASP Code (5)
  • CGI Perl Code Interview Questions CGI Perl Code (3)
  • JavaScript Code Interview Questions JavaScript Code (63)
  • VB Script Code Interview Questions VB Script Code (20)
  • Shell Script Code Interview Questions Shell Script Code (31)
  • Python Code Interview Questions Python Code (34)
  • WinRunner Code Interview Questions WinRunner Code (1)
  • HTML DHTML XHTML Code Interview Questions HTML DHTML XHTML Code (13)
  • XML Interview Questions XML (43)
  • Scripts_Markup Code AllOther Interview Questions Scripts_Markup Code AllOther (5)