J-C Posted January 14, 2010 Share Posted January 14, 2010 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 More sharing options...
J-C Posted January 14, 2010 Author Share Posted January 14, 2010 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. Link to comment https://forums.phpfreaks.com/topic/188413-clear-form-on-refresh/#findComment-994674 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.