
February 3rd, 2004, 05:23 PM
|
|
Junior Member
|
|
Join Date: Dec 2003
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
empty form when user clicks back
I want to empty the forms fields when a user clicks on the back button. I wrote some js that will do this, but I can't figure out the right time to execute the script. If I do it on the submit form event, the values entered do not get posted, if I do it on the <body> onLoad event, the form name isn't recognized (the page posts to itsself). I also tried putting the js in a <script> tag inline just after the form, but it doesn't seem to have any effect. I've google a bit on it, but haven't found anything satisfactory. Any help you can give would be greatly appreciated.
Justin
|