Forum Moderators: open
Use an onsubmit (or onclick) handler on the submit button to trigger the JavaScript behavior (make sure your function returns false to abort normal form submit). Then, simply make sure that you have specified the appropriate action attribute for those with JavaScript disabled.
Also, make sure that you use submit buttons in your form.