|
JavaScript unescape() Function
Complete Function Reference
Definition and Usage
The unescape() function decodes a string encoded with escape().
Syntax
| Parameter |
Description |
| string |
Required. The string to be decoded |
Tips and Notes
Note: The escape() and unescape() functions should not be used to
encode or decode URIs. Use encodeURI() and decodeURI() functions instead!
Example
In this example we first encode the strings with the escape() function, and
then decode them with the unescape() function:
<script type="text/javascript">
var test1="Visit W3Schools!";
test1=escape(test1);
document.write (test1 + "<br />");
test1=unescape(test1);
document.write(test1 + "<br />");
</script>
|
The output of the code above will be:
Visit%20W3Schools%21
Visit W3Schools!
|
Complete Function Reference
729,913 sites built with Wix. Make your own
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|