What is decodeURI() function?
Submitted by: Administrator► The decodeURI() function is used to decode the URI.
► Syntax :
decodeURI(uri)
Where uri is URI to be decoded
► For example :
<script>
var uri = "EmpDetails.asp?Emp=årpit&mode=edit";
document.write(encodeURI(uri) + "
");
document.write(decodeURI(uri) + "
");
</script>
► Output :
EmpDetails.asp?Emp=%C3%A5&mode=edit
EmpDetails.asp?Emp=årpit&mode=edit.
Submitted by:
► Syntax :
decodeURI(uri)
Where uri is URI to be decoded
► For example :
<script>
var uri = "EmpDetails.asp?Emp=årpit&mode=edit";
document.write(encodeURI(uri) + "
");
document.write(decodeURI(uri) + "
");
</script>
► Output :
EmpDetails.asp?Emp=%C3%A5&mode=edit
EmpDetails.asp?Emp=årpit&mode=edit.
Submitted by:
Read Online Expert Developer JavaScript Job Interview Questions And Answers
Top Expert Developer JavaScript Questions
☺ | Mention what is the disadvantage of using innerHTML in JavaScript? |
☺ | Which keyword is used to print the text in the screen? |
☺ | Why it is not advised to use innerHTML in JavaScript? |
☺ | Explain the concept of unobtrusive JavaScript? |
☺ | How are JavaScript and ECMA Script related? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |