Prev Demo
JavaScript
>
Encoding URI Component
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <p>Click the below button to Encode URI component.</p> <input type="button" onclick="myEncoding()" value="Encode URI component"> <p id="myId"></p> <script> function myEncoding() { var U = "http://www.dotnetfunda.com/advices/show/1125/9-years-stagnant-career-and-looking-of-job-in-dot-net-platform?_#$%^&*()"; var R = encodeURIComponent(U); document.getElementById("myId").innerHTML = R; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output