msSaveBlob method
Saves the File or Blob to disk.
Syntax
var retVal = Navigator.msSaveBlob(blob, defaultName);Parameters
- blob [in]
-
Type: any
- defaultName [in, optional]
-
Type: DOMString
Return value
Type: boolean
One of the following:
FalseA failure occurred.
TrueTrue is returned as long as the notification bar is displayed.
Remarks
When a site calls this method, the behavior is the same as when a Windows Store app using JavaScript downloads a file with this in the header:
Content-Length: <blob.size> Content-Type: <blob.type> Content-Disposition: attachment;filename=<defaultName> X-Download-Options: noopen
This method is asynchronous and has no callbacks.
See also
Build date: 11/28/2012
