window.unescape

  • Revision slug: DOM/window.unescape
  • Revision title: window.unescape
  • Revision id: 164232
  • Created:
  • Creator: Nickolay
  • Is current revision? No
  • Comment

Revision Content

{{template.DomRef()}}

Summary

Decodes a value that has been encoded in hexadecimal (e.g., a cookie).

Syntax

regular = window.unescape(escaped)
  • regular is the decoded string.
  • encoded is the encoded string.

Example

alert(unescape("%5C")); // displays "\"

Notes

See also escape.

Specification

{{template.DOM0()}} Mentioned in a non-normative section of ECMA-262.

Revision Source

<p>
{{template.DomRef()}}
</p>
<h3 name="Summary"> Summary </h3>
<p>Decodes a value that has been encoded in hexadecimal (e.g., a cookie).
</p>
<h3 name="Syntax">Syntax </h3>
<pre class="eval"><i>regular</i> = window.unescape(<i>escaped</i>)
</pre>
<ul><li><code>regular</code> is the decoded string.
</li><li><code>encoded</code> is the encoded string.
</li></ul>
<h3 name="Example"> Example </h3>
<pre class="eval">alert(unescape("%5C")); // displays "\"
</pre>
<h3 name="Notes"> Notes </h3>
<p>See also <a href="en/DOM/window.escape">escape</a>.
</p>
<h3 name="Specification"> Specification </h3>
<p>{{template.DOM0()}} Mentioned in a non-normative section of ECMA-262.
</p>
Revert to this revision