JavaScript: decodeURIComponent functions
Description
The decodeURIComponent function is used to decode a Uniform Resource Identifier (URI) component previously created by encodeURIComponent.
Syntax
decodeURIComponent(encodedURI)
Parameters
encodedURI: An encoded component of a Uniform Resource Identifier.
Example of decodeURIComponent() function
In the following web document decodeURIComponent() function is used to decode a Uniform Resource Identifier (URI) component previously created by encodeURIComponent.
JavaScript Code:
View the example in the browser
Live demo:
Previous: JavaScript: encodeURIComponent functions
Next: JavaScript Object
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics