Posted on June 25, 2007 by timchalk
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 [...]
Filed under: Browser quirks, HTML forms, JavaScript | 1 Comment »
Posted on June 20, 2007 by timchalk
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 [...]
Filed under: Browser quirks, CSS | Leave a Comment »
Posted on June 18, 2007 by timchalk
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 [...]
Filed under: Browser quirks, JavaScript | 2 Comments »