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 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 »