<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/js">
    $(document).keydown(function(e){
        if (e.keyCode == 37) { 
            alert( "Left");
            return false;
        }
    });
</script>

How to make this work? I am using Firefox and don't I get this working.

Appearentely I should have added "" around 37 thus "37".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.