Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

1 Answer
Samual Sam

The decodeURI() function accepts a string value representing an encoded URI, decodesit and, returns the resultant string.

Syntax

Its Syntax is as follows

decodeURI('https://www.qries.com/');

Example

<html>
   <head>
      <title>JavaScript Example</title>
   </head>
   <body>
      <script type="text/javascript">
         var result1 = decodeURI('https://www.qries.com/');
         document.write(result1);
         document.write("<br>");
         var result2 = decodeURI('https://www.tutorialspoint.com/');
         document.write(result2);
      </script>
   </body>
</html>

Output

https://www.qries.com/
https://www.tutorialspoint.com/

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.