<html manifest="example.appcache">
Can you add the manifest="example.appcache" part using javascript?
<html manifest="example.appcache">
Can you add the manifest="example.appcache" part using javascript?
No you can't because the html file is already sent to the server so further changes to manifest attribute won't make the browser react to it. I tried it with :
document.documentElement.manifest = "site.manifest";
And loading the pages with and without internet, in the seconde case it says "connection error" obviously