Prev Demo
JavaScript
>
Decode A String
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <p>Click the below button to run the UnEsacpe function.</p> <input type="button" onclick="myFunction()" value="UnEscape(Decode)"> <p id="myId"></p> <script> function myFunction() { var U = "Want to learn technologies? Go through TechFunda.com"; var E = escape(U); var D = unescape(E); var R = "Encode Result is:" + E + "</br>" + "Decode Result is:" + D; document.getElementById("myId").innerHTML = R; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output