Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Nossos voluntários ainda não traduziram este artigo para o Português (do Brasil) . Junte-se a nós e ajude a fazer o trabalho!

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

Summary

The URL.revokeObjectURL() static method releases an existing object URL which was previously created by calling URL.createObjectURL().  Call this method when you've finished using a object URL, in order to let the browser know it doesn't need to keep the reference to the file any longer.

Note: This feature is available in Web Workers.

Syntax

window.URL.revokeObjectURL(objectURL);
objectURL
is a DOMString representing the object URL that was created by calling URL.createObjectURL().

Example

See Using object URLs to display images.

Specification

Specification Status Comment
File API
The definition of 'URL' in that specification.
Working Draft Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 8.0[1] 4.0 (2.0) 10.0 15.0 6.0[1]
7.0
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support (Yes)[1] 14.0 (14.0) (Yes) 15.0 6.0[1]
7.0

[1] Implemented with URL prefixed as webkitURL.

See also

Etiquetas do documento e colaboradores

 Última atualização por: rolfedh,