Is it possible to download html files and images from a server and store them in the same disk location as the 开发者_如何转开发html file doing the downloading?
I need to do this because I have an app that is a database of HTML files and these files change from time to time. When updates occur, it would be good if the HTML5 app prompted the user to do an update and if accepted, the file were downloaded and replaced the old file set.
The app has to work offline, hence the need to download the data.
In most browsers, yes. Read about the cache manifest http://diveintohtml5.ep.io/offline.html
精彩评论