Home
Run >
<!DOCTYPE html> <html> <head> <!-- www.techstrikers.com --> <title>My first Javascript code</title> </head> <body bgcolor="#bnde45"> <fieldset> <legend>Javascript decodeURIComponent Function</legend> <script> var uri = "https://www.techstrikers.com/test.php?id=23&str=this is test"; //Encode Uri Component var uriEnc = encodeURIComponent(uri); document.write(uriEnc); document.write("</br>"); //Decode Uri Component document.write(decodeURIComponent(uriEnc)); document.write("</br>"); </script> </fieldset> </body> </html>