Be careful how you name your submit buttons

Last week I was banging my head against the door trying to perform the simple task of getting a button to submit a form using JavaScript. Normally this wouldn’t present a problem and is accomplished quite easily by adding an onclick event to the button which runs the following JavaScript…
document.forms[0].submit();
However both Internet Explorer and Firefox [...]

A CSS workaround for working with multiple submit buttons in a web form

I ran into a problem today with my wizard style forms whereby pressing the Enter key would cause the wizard form to go to the previous page rather than the next one – not exactly desirable behaviour!
It turns out that when there are multiple submit buttons on a form the browser will select the first [...]

How to prevent focus jumping to the address bar when tabbing in IE

I had a simple login form, consisting of username and password fields, which when submitted with the incorrect details would select the contents of the username field using the JavaScript select() command and prompt the user to correct their entry, but when pressing tab to jump to the next field, focus would jump to the [...]