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? Link to comment https://forums.phpfreaks.com/topic/65043-save-then-redisplay-web-page/ 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; } Link to comment https://forums.phpfreaks.com/topic/65043-save-then-redisplay-web-page/#findComment-324605 Share on other sites More sharing options...
stockton Posted August 16, 2007 Author Share Posted August 16, 2007 Thank you. That looks easy enough. Link to comment https://forums.phpfreaks.com/topic/65043-save-then-redisplay-web-page/#findComment-325450 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.