Prev Demo
JavaScript
>
Escape (Encode)
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 Escape function.</p> <input type="button" onclick="myFunction()" value="Escape(Encode)"> <p id="myId"></p> <script> function myFunction() { var U = "Want to learn technologies? Go through TechFunda.com"; var R = escape(U); document.getElementById("myId").innerHTML = R; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output