decodeURI-2

 

%20 is a replacement of spaces and decodeURI function will convert all such code to URI. http://learnkode.com/Examples/Javascript/Javascript%20decodeURI%20functions will get converted to http://learnkode.com/Examples/Javascript/Javascript decodeURI functions.

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <button onclick="decryptUrl()">decodeURI Fucntionality</button> <p id="sample"></p> <script> function decryptUrl() { var dec = decodeURI("http://learnkode.com/Examples/Javascript/Javascript%20decodeURI%20functions"); document.getElementById("sample").innerHTML = dec; } </script> </body> </html>
Output