Visit Mozilla.org

Core JavaScript 1.5 Reference:Global Functions:decodeURI

From MDC


Contents

[edit] Summary

Core Function

Decodes a Uniform Resource Identifier (URI) previously created by encodeURI or by a similar routine.

[edit] Syntax

decodeURI(encodedURI)

[edit] Parameters

encodedURI 
A complete, encoded Uniform Resource Identifier.

[edit] Description

Replaces each escape sequence in the encoded URI with the character that it represents.

Does not decode escape sequences that could not have been introduced by encodeURI.

[edit] See also

decodeURIComponent, encodeURI, encodeURIComponent