JavaScript decodeURI() Function
JavaScript Global Functions
Definition and Usage
The decodeURI() function is used to decode a URI.
Tip: Use the encodeURI() function to
encode a URI.
Syntax
| Parameter |
Description |
| uri |
Required. The URI to be decoded |
Browser Support

The decodeURI() function is supported in all major browsers.
Example
Example
Decode a URI after encoding it:
<script type="text/javascript">
var uri="my test.asp?name=ståle&car=saab";
document.write(encodeURI(uri)+ "<br />");
document.write(decodeURI(uri));
</script>
|
The output of the code above will be:
my%20test.asp?name=st%C3%A5le&car=saab
my test.asp?name=ståle&car=saab |
Try it yourself »
|
JavaScript Global Functions

Whether you're new to XML or already an advanced user,
the user-friendly views and powerful entry helpers,
wizards, and debuggers in XMLSpy are designed to meet your XML
and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- And much more!
Download a free trial today!
|
|
|
|