window.unescape

  • Revision slug: DOM/window.unescape
  • Revision title: window.unescape
  • Revision id: 164231
  • Created:
  • Creator: Jabez
  • Is current revision? No
  • Comment /* Parameters */

Revision Content

{{template.DomRef()}}

Summary

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

Syntax

sRegular = window.unescape(sEscaped)

Parameters

  • sRegular is the decoded string.
  • sEncoded is the encoded string.

Example

cookieValuePlain = window.unescape( cookieValue );

Notes

See also window.escape.

Specification

DOM Level 0. Not part of specification.

Revision Source

<p>
{{template.DomRef()}}
</p>
<h3 name="Summary">Summary</h3>
<p>Unencodes a value that has been encoded in hexadecimal (e.g., a cookie). 
</p>
<h3 name="Syntax">Syntax </h3>
<pre class="eval"><i>sRegular</i> = window.unescape(<i>sEscaped</i>)
</pre>
<h3 name="Parameters">Parameters </h3>
<ul><li><code>sRegular</code> is the decoded string.
</li><li><code>sEncoded</code> is the encoded string.
</li></ul>
<h3 name="Example">Example </h3>
<pre class="eval">cookieValuePlain = window.unescape( cookieValue );
</pre>
<h3 name="Notes">Notes </h3>
<p>See also <a href="en/Window.escape">window.escape</a>. 
</p>
<h3 name="Specification">Specification </h3>
<p>DOM Level 0. Not part of specification.
</p>
Revert to this revision