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.
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).
I tried this:
$("#loginPass").blur(function (e) { if (e.keyCode == 13) $("#DealerLogin").click(); }); I have firebug for Firefox but can't figure out how to look at what js related operations are firing.

keydown,keypress, andkeyup; in that order.eis an event object, and should contain the full context of the event it represents, including what triggered it (source element, type of trigger, etc...). Should be able to inspect that with Firebug.