Alert When Keyboard Arrow Key Is Pressed By Jquery

there is simple jquery code below. by this code you can  alert or trigger any event on a keyboard key. Must add jquery script. <script   src=”https://code.jquery.com/jquery-3.4.1.min.js”   integrity=”sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=”   crossorigin=”anonymous”></script>   <script> $(function () { $(document).on(‘keyup keydown keypress’, function (event) { if (event.keyCode == 39) { alert(“right arrow is pressed”); } else

Read More »
No data found.