decodeURI Method (Windows Scripting - JScript)

 

Returns the unencoded version of an encoded Uniform Resource Identifier (URI).

Syntax

decodeURI(URIstring)

Remarks

The required URIstring argument is a value representing an encoded URI.

Use the decodeURI method instead of the obsolete unescape method.

The decodeURI method returns a string value.

If the URIString is not valid, a URIError occurs.

Applies To: Global Object (Windows Scripting - JScript)

Requirements

Version 5.5

See Also

decodeURIComponent Method (Windows Scripting - JScript)
encodeURI Method (Windows Scripting - JScript)
Global Object (Windows Scripting - JScript)