Interviewer And Interviewee Guide

Expert Developer JavaScript Interview Question:

What is encodeURI() function?

Submitted by: Administrator
► encodeURI() function is used to encode the URI.
► This function does not encode following special characters :
' = , ? : $ @ / & # + '
► Syntax : encodeURI(uri), Where uri is URI to be encoded.
► For example :
<script>
var uri = "EmpDetails.asp?Emp=årpit&mode=edit";
document.write(encodeURI(uri) + "
");
</script>
Output :
EmpDetails.asp?Emp=%C3%A5&mode=edit.
Submitted by:

Read Online Expert Developer JavaScript Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.