Yes, you can do this with the data url . First encode the document as base64 . Then use the following URL as the source of your window:
var mtype = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; var url = 'data:' + mtype + ';base64,' + base64data; window.open(url);
This will require a modern browser .
source share