A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/decodeURIComponent below:

decodeURIComponent ยท WebPlatform Docs

decodeURIComponent Summary

Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).

Syntax
decodeURIComponent( encodedURIString )
Examples

The following code first encodes and then decodes a URI.

var uriEncode = encodeURI ("http://www.Not a URL.com");
 var uriDecode = decodeURIComponent(uriEncode);

 document.write (uriEncode);
 document.write("<br/>");
 document.write (uriDecode);

 
 
 
Remarks

The required encodedURIString argument is a value representing an encoded URI component.

A URIComponent is part of a complete URI.

If the encodedURIString is not valid, a URIError occurs.

See also Other articles Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4