mozilla

Revision 319781 of decodeURI()

  • Revision slug: JavaScript/Reference/Global_Objects/decodeURI
  • Revision title: decodeURI
  • Revision id: 319781
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment pre.syntaxbox ...etc.
Tags: 

Revision Content

Summary

Core Function

Decodes a Uniform Resource Identifier (URI) previously created by encodeURI or by a similar routine.

Core Global Method
Implemented in JavaScript ?
ECMAScript Edition ECMAScript ?

Syntax

decodeURI(encodedURI)

Parameters

encodedURI
A complete, encoded Uniform Resource Identifier.

Description

Replaces each escape sequence in the encoded URI with the character that it represents.

Does not decode escape sequences that could not have been introduced by encodeURI.

See also

Revision Source

<h2 id="Summary" name="Summary">Summary</h2>
<p><strong>Core Function</strong></p>
<p>Decodes a Uniform Resource Identifier (URI) previously created by <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/encodeURI" title="en-US/docs/JavaScript/Reference/Global_Objects/encodeURI">encodeURI</a></code> or by a similar routine.</p>
<table class="standard-table">
  <thead>
    <tr>
      <th class="header" colspan="2">Core Global Method</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Implemented in</td>
      <td>JavaScript ?</td>
    </tr>
    <tr>
      <td>ECMAScript Edition</td>
      <td>ECMAScript ?</td>
    </tr>
  </tbody>
</table>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre class="syntaxbox"><code>decodeURI(<i>encodedURI</i>)</code></pre>
<h3 id="Parameters" name="Parameters">Parameters</h3>
<dl>
  <dt>
    <code>encodedURI</code></dt>
  <dd>
    A complete, encoded Uniform Resource Identifier.</dd>
</dl>
<h2 id="Description" name="Description">Description</h2>
<p>Replaces each escape sequence in the encoded URI with the character that it represents.</p>
<p>Does not decode escape sequences that could not have been introduced by <code><a href="en-US/docs/Core_JavaScript_1.5_Reference/Global_Functions/encodeURI">encodeURI</a></code>.</p>
<h2 id="See_also" name="See_also">See also</h2>
<ul>
  <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/decodeURIComponent" title="JavaScript/Reference/Global_Objects/decodeURIComponent">decodeURIComponent</a></li>
  <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/encodeURI" title="JavaScript/Reference/Global_Objects/encodeURI">encodeURI</a></li>
  <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent" title="JavaScript/Reference/Global_Objects/encodeURIComponent">encodeuricomponent</a></li>
</ul>
<!-- languages({
"fr": "fr/docs/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Fonctions_globales/decodeURI",
})-->
Revert to this revision