Not much you can do, scripted changes to the dom only affect the in memory object, they are not saved to the underlying file.
You have a number of options:
- Stores changes made server side in a session variable or to a database.
- Store changes made client side using a cookie if they are small or the user store if it's IE and the users allow this form of storage.
- Use a frameset and store data in one frame which remains while the other changes
You are obviously going to have to keep track of whether changes need re-applying.
What exactly is your overall objective?
Joe (Microsoft MVP - XML