I have a form with an onClick event (javascript) for the submit button. When the button is clicked it works fine. However, when the enter key is pressed, the form is submitted but the javascript is not executed. Is this the way it is supposed to work? If so, what do I need to do to get the enter key to run the javascript as well? TIA.