Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

write a code that user can choose/alter Body Text Size

2090


code to keep a page Out of the browser history

2132


code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc

2227


how to copy form data between different pages

2384


code to create a new window

2229


how to pass data between pages using Frames

2783


code to set the main window's size

2376


How to encode and decode URL strings?

2357


how to create Expandable and Collapsible Menus

3302


how to transform XML Data into HTML

2449


Reading which Non-Character Key was pressed

2301


create Drop-Down Navigation Menus

2245


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

2316


How to block double clicks

2176


I have a doubt regarding including tags in a function. I have written a function in javascript in a html page. The function got called by clicking a button, i want to display the results in same html page by placing tags in the function. (this hmtl page is static page) Is this possible? example: