t-kluo Posted June 12, 2006 Share Posted June 12, 2006 Hi, I am trying to add a save button on a html page, by clicking the button, the whole html page (including images in the page) will be saved.I tried to use document.execCommand("SaveAs",true,"filename.html"), which can not save the images on the html page. Does anyone know how to implement this save function using Javascript or other technique? Thanks a lot in advance.Katherine Link to comment Share on other sites More sharing options...
justsomeguy Posted June 12, 2006 Share Posted June 12, 2006 I've never heard of anyone doing that. The Save As feature is a feature of browsers, not of the websites. If you really wanted to, you could create a PHP script to link to that would parse the HTML document and collect all of the HTML, images, CSS and javascript and package them together in a zip file to send to the client.But that's a lot of work to replicate what most browsers already do by themselves. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now