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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form values and refresh 1

Status
Not open for further replies.

stormbind

Technical User
Mar 6, 2003
1,165
GB
Hi,

Values in fields are not resetting to their default value when the page is refreshed. How can I fix that?

----------
Memoria mihi benigna erit qui eam perscribam
 
Maybe try:

Code:
<body onload="document.forms['formname'].reset();">

*cLFlaVA
----------------------------
[tt]insert funny quotation here.[/tt]
 
the question really should be "why is a user refreshing a form page in the first place?"

*cLFlaVA
----------------------------
[tt]insert funny quotation here.[/tt]
 
Because it's for a game, and refreshing half-way through the signup process happens to unlock a cheat.

----------
Memoria mihi benigna erit qui eam perscribam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top