Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Scripting language Interviews:AngularJSAngularJS DeveloperChrome FrameDojoExpert Developer JavaScriptExpert JavaScript DeveloperExt CoreEXT-GWTExt-JSFront End Developer (AngularJS)JQuery DeveloperjQuery MobileJQuery ProgrammerJQuery UIMooToolsPrototype FrameworkQooxdooScriptingSencha TouchSizzle Selector EngineSWFObjectWeb Font LoaderXMLHttpRequest
Copyright © 2018. All Rights Reserved
Expert Developer JavaScript Interview Question:
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:
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.