JavaScript unescape() Function
- Previous Page undefined
- Next Page decodeURI()
- Go to the Previous Level JavaScript Global Reference Manual
Definition and Usage
unescape()
The function has been deprecated in JavaScript 1.5. Please use decodeURI()
Or decodeURIComponent()
Instead of.
unescape()
The function decodes the encoded string.
Example
Encoding and decoding strings:
var str = "Need tips? Visit CodeW3C.com!"; var str_esc = escape(str); document.write(str_esc + "<br>") document.write(unescape(str_esc))
Syntax
unescape(string)
Parameter value
Parameter | Description |
---|---|
string | Mandatory. The string to be decoded. |
Browser Support
Function | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
unescape() | Support | Support | Support | Support | Support |
Technical Details
Return Value: | String, representing the decoded string. |
---|
- Previous Page undefined
- Next Page decodeURI()
- Go to the Previous Level JavaScript Global Reference Manual