Section 24.70. decodeURI( ): unescape characters in a URI


24.70. decodeURI( ): unescape characters in a URI

ECMAScript v3

24.70.1. Synopsis

 decodeURI(uri) 

24.70.1.1. Arguments

uri

A string that contains an encoded URI or other text to be decoded.

24.70.1.2. Returns

A copy of uri, with any hexadecimal escape sequences replaced with the characters they represent.

24.70.1.3. Throws

URIError

Indicates that one or more of the escape sequences in uri is malformed and cannot be correctly decoded.

24.70.2. Description

decodeURI( ) is a global function that returns a decoded copy of its uri argument. It reverses the encoding performed by encodeURI( ); see that function's reference page for details.

24.70.3. See Also

decodeURIComponent( ), encodeURI( ), encodeURIComponent( ), escape( ), unescape( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net