Thursday, 7 August 2014

Capturing “Delete” Keypress with jQuery

   $('html').keydown(function (e) {              
                if (e.keyCode == 46) {
                   alert('You pressed delete key');
                }
            })