
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Decode URI Function in JavaScript
The decodeURI() function accepts a string value representing an encoded URI, decodesit and, returns the resultant string.
Syntax
Its Syntax is as follows
decodeURI('http://www.qries.com/');
Example
<html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var result1 = decodeURI('http://www.qries.com/'); document.write(result1); document.write("<br>"); var result2 = decodeURI('http://www.tutorialspoint.com/'); document.write(result2); </script> </body> </html>
Output
http://www.qries.com/ http://www.tutorialspoint.com/
Advertisements