W3cubDocs

/Web APIs

BlobEvent: BlobEvent() constructor

The BlobEvent() constructor returns a newly created BlobEvent object with an associated Blob.

Syntax

js

new BlobEvent(type, options)

Parameters

type

A string with the name of the event. It is case-sensitive and browsers always set it to dataavailable.

options

An object that, in addition of the properties defined in Event(), can have the following properties:

data

The Blob associated with the event.

timecode

A DOMHighResTimeStamp to be used in initializing the blob event.

Return value

A new BlobEvent object.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
BlobEvent 49 79 21 No 36 14 49 49 21 36 14 5.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/BlobEvent