How to figure out what event is being called in javascript
<p>I'm using ASP.NET, but on a certain page I am using regular html text boxes as the request is done with AJAX, rather than the traditional full page post back. My issue is that when the user fills out the last text box and presses enter the text box loses focus and the page scrolls all the way to the bottom.</p>

<p>I tried using the onblur event but it's not working, so I'm wondering what event is actually being called when the enter key is pressed(or any key for that matter).</p>

<p>I tried this:</p>

<pre><code>$("#loginPass").blur(function (e) {
            if (e.keyCode == 13) 
                $("#DealerLogin").click();
        });
</code></pre>

<p>I have firebug for firebox but can't figure out how to look at what js related operations are firing.</p>
