stockton Posted August 15, 2007 Share Posted August 15, 2007 I have a working web application (intranet) that currently successfully displays a web page with necessary data and subsiquently, using JavaScript, prints a slightly reformatted version of the page. My user has now asked me to perform another action between the above mentioned action which effectively means the web page gets overwritten. Is there a way for me to save this web page complete with the data displayed thereon and after performing the required action redisplay the original page? Quote Link to comment Share on other sites More sharing options...
gurroa Posted August 15, 2007 Share Posted August 15, 2007 If you can use javascript then save body.innerHTML var origpage = document.body.innerHTML; function Revert() { document.body.innerHTML = origpage; } Quote Link to comment Share on other sites More sharing options...
stockton Posted August 16, 2007 Author Share Posted August 16, 2007 Thank you. That looks easy enough. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.