Jump to content

Clear form on refresh


J-C

Recommended Posts

Ok simple question, I have been goggling and the stuff i come around doesn't work like

 

<script>document.form.reset();</script> 

 

when i press f5 in Firefox the values that I already put are still there, is not really a big deal but if you know how to do this please help.

 

EDIT:  ok I have founded it is

 onload="document.FORMNAME.reset();" 

 

where FORMNAME is obviously the form you want to refresh, guess I should have looked harder.  :-[

Link to comment
https://forums.phpfreaks.com/topic/188413-clear-form-on-refresh/
Share on other sites

Ok simple question, I have been goggling and the stuff i come around doesn't work like

 

<script>document.form.reset();</script> 

 

when i press f5 in Firefox the values that I already put are still there, is not really a big deal but if you know how to do this please help.

 

EDIT:  ok I have found it is

 onload="document.FORMNAME.reset();" 

 

where FORMNAME is obviously the form you want to refresh, guess I should have looked harder.  :-[

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.