Persisting Form Data

When the Save button is clicked, save this page as Web Page, HTML Only. The input value will be stored in the script variable. When the page is loaded, click the Load button to restore the text field value from the persisted script variable.

Enter some Text:


Click to save:


Click to load:

Right-click in the window and choose View Source to see the source code.




© 2007 Microsoft Corporation. All rights reserved. Terms of use.