🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

keypress-log is a small jQuery plugin that tracks the "keypress" JavaScript events and logs the key presses on your webpage.

Keyboard

Documentation

jquery-keypress-log

Simple plugin to store input history. The plugin keeps track of keystrokes through events 'keypress'. The log is written only character values (except for control keys).

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script> <script src="dist/jquery.keypress-log.min.js"></script> <script>   jQuery(function ($) {     $('inputSelector').keyPressLog(); // replace 'inputSelector' to what you need   }); </script>

Get log data:

    var inputLog = $('inputSelector').data('keyPressLog').get();

Subscribe to log event:

     $("inputSelector").on('logChanged.keyPressLog', function (e, data) {         console.log(data.log); // write current log data to console      });

Contributing

See contributing page

License

MIT © xtratio


You May Also Like