JavaScript Global Functions
The unescape() function decodes an encoded string.
Tip: Use escape() to encode strings.
| Parameter | Description |
|---|---|
| string | Required. The string to be decoded |
![]()
The unescape() function is supported in all major browsers.
Note: The unescape() functions should not be used to decode URIs. Use decodeURI() functions instead.
Encode and decode a string:
The output of the code above will be:
JavaScript Global Functions
Your message has been sent to W3Schools.