window.unescape

  • Revision slug: DOM/window.unescape
  • Revision title: window.unescape
  • Revision id: 164235
  • Created:
  • Creator: Sethaniel
  • Is current revision? No
  • Comment /* Syntax */

Revision Content

{{ 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.
  • escaped is the encoded string.

Example

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

Notes

See also escape, decodeURIComponent.

Specification

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

{{ languages( { "ja": "ja/DOM/window.unescape" } ) }}

Revision Source

<p>
{{ DomRef() }}
</p>
<h3 id="Summary" name="Summary"> Summary </h3>
<p>Decodes a value that has been encoded in hexadecimal (e.g., a cookie).
</p>
<h3 id="Syntax" 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>escaped</code> is the encoded string.
</li></ul>
<h3 id="Example" name="Example"> Example </h3>
<pre class="eval">alert(unescape("%5C")); // displays "\"
</pre>
<h3 id="Notes" name="Notes"> Notes </h3>
<p>See also <a href="en/DOM/window.escape">escape</a>, <a href="en/Core_JavaScript_1.5_Reference/Global_Functions/decodeURIComponent">decodeURIComponent</a>.
</p>
<h3 id="Specification" name="Specification"> Specification </h3>
<p>{{ DOM0() }} Mentioned in a non-normative section of ECMA-262.
</p>
<div class="noinclude">
</div>
{{ languages( { "ja": "ja/DOM/window.unescape" } ) }}
Revert to this revision