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