EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

msSaveOrOpenBlob method

Launches the associated application for a File or Blob.

Syntax

var retVal = navigator.msSaveOrOpenBlob(blob, defaultName);

Parameters

blob [in]

Type: any

defaultName [in, optional]

Type: DOMString

retVal [out, retval]

Type: boolean

One of the following:

ValueMeaning
False

A failure occurred.

True

True is returned as long as the notification bar is displayed.

 

Return value

Type: boolean

One of the following:

False

A failure occurred.

True

True is returned as long as the notification bar is displayed.

Remarks

When a site calls this method, the behavior is the same as when Windows Internet Explorer downloads a file with the following in the header:

Content-Length: <blob.size>
Content-Type: <blob.type>
Content-Disposition: attachment;filename=<defaultName>

This method is asynchronous and has no callbacks.

See also

navigator

 

 

표시:
© 2014 Microsoft