Best Tutorials website


Resetting forms using an Image Button (IE4+ / NS4+)

Resetting forms using an Image Button (IE4+ / NS4+)

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.




Views: 845 | Rating star | by Sean




View this tutorial
Broken link Report broken link?