acción
Este es mi código:
Código:
navigator.webkitPersistentStorage.requestQuota(1024*1024, function() {
window.webkitRequestFileSystem(window.TEMPORARY , 1024*1024, function(fileSystem) {
fileSystem.root.getFile("factura.txt", {create: true}, function(entry) {
var fileEntry = entry;
entry.createWriter(function(writer) {
writer.onwrite = function(evt) {
};
var file = new Blob(["acción"]), {type: "text/plain"});
writer.write( file );
}, function(error) {
});
}, function(error){
});
},
});


