determine which key was pressed and its type

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create a Custom Scrollbar

2046


advance the focus to next consecutive fields when Enter Key is pressed

1794


code to set the main window's size

1702


how to create a Draggable element

1968


how to Scroll a DIV content

2154






code to positioning of window in certain dimensions

1663


write a code to generate pseudorandom numbes

1780


code to create a new window

1752


How to encode and decode URL strings?

1786


how to Auto Scroll the page

1629


function to combine two or more arrays

1694


determine which Element received an Event

1900


code to images to rollover

1854


code to keep a page Out of the browser history

1651


sample code to auto focusing the first field in a form

2026