Prev Demo
JavaScript
>
Decoding URI
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <p>Click the below button to Decode after Encode.</p> <input type="button" onclick="myDecoding()" value="Encode & Decode"> <p id="myId"></p> <script> function myDecoding() { var U = "the .NET Inetrview preparation videos?_#$%^&*()"; var E = encodeURI(U); //* Enocde the string *// var D = decodeURI(E); //* Decode th encoded string *// var R = "Encode Result is:" + E + "</br></br>" + "Decoding Result is:" + D; document.getElementById("myId").innerHTML = R; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output