Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rest button

Status
Not open for further replies.

Killborg

Technical User
Jul 16, 2007
46
US
Is there any way I can have a reset button do two functions.
1st function is to reset the form.
2nd function is to refresh the page.
 
Hi

Dan said:
If you refresh the page, the form will be reset anyway.
Not in all browsers an in all circumstances. For example Mozillas usually do no discard your work if not necessary.

Maybe I am just too stupid, but happened to mistype a Ctrl-F while I filled a [tt]form[/tt]... So I am happy they keep the [tt]form[/tt] content while refreshing.

Feherke.
 
Thank You,
I have images being displayed.
If I just refresh the page the image goes away but the form items are still in the fields.

If I just reset the form fields default but the image is still there.

There might be something wrong somewhere else. But
<input type="reset" onclick="location.reload()"> is working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top