For various web scripts it is more convenient that user will see form executed in new window when he is pressing the submit button. Using JavaScript you can control the appearance of that window. change size, turn off navigation panel, hide manubar and so on. This technique is very helpful for poll and guestbook applications.
In forms when using text boxes or text areas and check boxes you might need a reset button that is not the usual gray HTML button. For this you can use a small JavaScript function as given below. Note: This button will reset only text boxes,text areas and check boxes as list boxes and option buttons don't usually require resetting. After resetting the form the cursor will set the focus to the first field in the form.
In forms when using text boxes or text areas with limited character length (usually needed for forms that submit data to a database) it is always a good idea to tell the user how many characters they have remaining. The following example shows how you can do this. This is a very simple and cute idea to help the user know exactly how many characters he can type further. Do these small add-ons to your forms and they will look really professional.
A tutorial on how to script forms with JavaScript. Covers different event handlers for common form elements. This is an excerpt of "Beginning JavaScript" from Wrox Press.
This articles discusses two aspects of JavaScript: working with HTML forms and manipulating frames. It also present a simple but effective personalized greeting script and a script used for submitting and HTML form. Main topics covered: Personalized greetings, Submitting an HTML form using JavaScript, Input Validation, and Frames and JavaScript.
You can use two multiple-select menus to make it easy for someone to create a list, by moving items from one menu to the other. This can be down with three line of JavaScript. Find out how.
A Form is an HTML construct used to get input from the user, which is usually processed using CGI Scripts or similar mechanisms. Here, you will be presented with several examples of form validation using JavaScript.