Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

decodeURIComponent

The decodeURIComponent() function of the Global object works opposite the encodeURIComponent() function. It performs the reverse functionality by decoding the previously encoded URI.

SyntaxdecodeURIComponent( uri )

Parameters

uri The Uniform Resource Identifier to be affected.

Examples

var decoded = decodeURIComponent('http%3A%2F%2Fwww.website.com%2Fname%20of%20file.html'); document.write( decoded ); /* http://www.website.com/name of file.html */

JavaScript

Methods

addEventListeneralertaveragebackblurconcatcreatedecodeURIdecodeURIComponentencodeURIencodeURIComponentevaleveryfilterforwardgoisArrayisFiniteisNaNjoinparseFloatparseIntpoppushpushStatereducereplaceStatereverseshiftshuffleslicesomesortspliceunshiftwrite