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