Navigation Menu

Site Contents
What's New?


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Partner With Us
Server Racks
Logo Design
Laptops
Imprinted Promotions
PDA Phones & Cases
Logo Design
Phone Cards
Free Business Cards
Imprinted Gifts
Televisions
Promotional Products
GPS
Promotional Items
Computer Deals

Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

Use this script to determine the JavaScript key code of a selected key. Just press a key and an alert box will display the corresponding keycode.


Click to see it in action!

Notes

Source Code

Paste this source code into the designated areas.

Head

Paste this code into the HEAD section of your HTML document.


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum]

    
   
       
[optional field]
 
[optional field]

   

Comments feed Comment Feed RSS 2.0

3. From: Raju
01/21/2008 23:41:10

Nice Code snippet...
is there ne way to find the keycode of double key say for example shift+3 or cntrl+k

1. From: mark
window.close(); not working
01/19/2008 03:31:48

The pop-up Alert with KeyCode works fine,
[Close Window] button only works on the web site:
http://javascript.internet.com/snippets/keycode-checker-tool.html
NOT from the copied Source Code
What is missing?
2008-01-19 09:24:10

2. From: Lee Underwood (Admin)
01/29/2008 12:52:11

That's just for demo purposes. It's not part of the actual code.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.