Abel
Abel

Reputation: 31

javascript to save history

I have a html form which are paginated.I need javascipt that can save the history of value of input, user click next pages and when return to previous page can see what was wrote.

Upvotes: 2

Views: 2023

Answers (2)

Anudeep GI
Anudeep GI

Reputation: 941

Use Cookies method in javascript to store text box value. Keep a JavaScript variables value after a page refresh? this page gives more information about cookies.

Upvotes: 1

Bas Slagter
Bas Slagter

Reputation: 9929

You have several options. You can for example use local storage.

But since that is not supported in older browsers, you can fall back to a cookie mechanism for example. Check out jstorage.info for a library that handles this fallback behaviour for you.

Upvotes: 5

Related Questions