input box gets cleared on refresh page : javascript
Posted
by p p
on Stack Overflow
See other posts from Stack Overflow
or by p p
Published on 2009-06-30T21:10:22Z
Indexed on
2010/05/13
9:04 UTC
Read the original article
Hit count: 154
JavaScript
Hi,
I have a javascript function that writes the value of input box to a cookie, then it tells the page to refresh. The page must be refreshed to the server side can reconstruct the page based on the values of the cookies. Output the correct data on the page.
However I do not want the user to lose the value they type on the input box unless they erase it.
what can i do?
© Stack Overflow or respective owner