Keyboard event detection (Key Tracker)

CK CK 3788 
Created at  
1,087 0 0
Track your key Press

<!--This is developed by Nepali Guys
for further information please email us at
ha.p@mailcity.com
shivascm@hotmail.com
-->

<html>
 <head>
<title>Simple javascript key tracker</title>


<script language="javascript">
function handlePress(events) {
  var whichCode = (window.Event) ? events.which : events.keyCode;
if (whichCode==13)
    alert("You have pressed Enter key");
else if (whichCode==32)
    alert("You have pressed space key");

else
      alert("You have pressed the character " + String.fromCharCode(whichCode));
}
</script>

</head>
<BODY onKeyPress="handlePress(event)">
<form>
 <table border=0>
  <tr>
   <td><font size=4 face=verdana><b>press any key </b></font></td>
  </tr>
 </table>
</form>
</body>
</html>

Tags HTML Javascript Key event Keyboard Event kbdevent Facebook X
Comments 0
Similar posts
  1. Get A Print Dialog Box By Clicking A Button
    818
  2. IsIn For Arrays
    568
  3. Roman Numerals From Integers
    511
  4. Linking Drop Downs
    576
  5. Example Of Creating Objects
    402
  6. Printing A Page
    378
  7. Cross Browser Event Management Functions Using JavaScript
    611
  8. Javascript & Cookie based Visitor Application
    435
  9. How to record visitor's name by Cookie
    411
  10. Save And Restore Form Cookies in Javascript
    334
  11. Let popup once for event dialog or something like that in Javascript
    424
  12. New content notifier in Javascript
    597
  13. Cookie Redirect
    496
  14. Cookie enabled browser checking in Javascript
    342
  15. Access Granted
    586
  16. Greeting For The Time Of Day
    393
  17. Displays the number of pages that the users browser has displayed in its session
    666
  18. Address Book
    576
  19. Basic Date Display
    510
  20. Javascript implemented Calendar
    421
  21. Javascript based Alarm Clock
    666
  22. How to get date time in Javascript ?
    498
  23. Hiding HTML on the browser
    461
  24. Getting WebSearchers On Your Site
    373
  25. Javascript Mouse Event Handler Example
    403
  26. Select And Deselect All Checkboxes By Javascript
    631
  27. Confirm The Link Clicked
    630
  28. Enlarge Image
    514
  29. Dual Scroller
    332
  30. Cursor Changer
    383
  1. Greeting For The Time Of Day
    393
  2. Access Granted
    586
  3. Cookie enabled browser checking in Javascript
    342
  4. Cookie Redirect
    496
  5. New content notifier in Javascript
    597
  6. Let popup once for event dialog or something like that in Javascript
    424
  7. Save And Restore Form Cookies in Javascript
    334
  8. How to record visitor's name by Cookie
    411
  9. Javascript & Cookie based Visitor Application
    435
  10. Cross Browser Event Management Functions Using JavaScript
    611
  11. Printing A Page
    378
  12. Example Of Creating Objects
    402
  13. Linking Drop Downs
    576
  14. Roman Numerals From Integers
    511
  15. Get A Print Dialog Box By Clicking A Button
    818
  16. IsIn For Arrays
    568
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    39
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    34
  3. How do I create animated background for Google Meet?
    20,611
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    244
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    94
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    157
  7. Array of arguments passed to script in PHP
    90
  8. Invalid Auction Storms in Ad Tech
    98
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    202
  10. The Two Clocks of Ad Server Architecture
    70
  11. Frequency Cap Architecture Overview
    514
  12. Collecting Proof-of-Play from 100,000 Screens
    146
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    287
  14. What is RedisVL?
    109
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    230
  16. TPU & GPU Cluster Management Tools
    243
  17. The Concept of Scaffolding in AI Agents
    233
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    583
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    258
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    339
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    202
  22. Machine Learning: Training vs. Ranking
    221
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    222
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    195
  25. Designing a Data Curation System Around a Vector Database
    220
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    256
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    656
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    195
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    216
  30. Understanding Data Lineage
    260