Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript URIError</title> </head> <body> <script> var a = "%E6%A2%B"; try { decodeURI(a); // throws a URI error } catch(e) { document.write(e.name + ": " + e.message); } </script> </body> </html>