What is the use of decodeuri() and encodeuri()?



What is the use of decodeuri() and encodeuri()?..

Answer / Avlokna Agarwal

The encodeURI() and decodeURI() functions in JavaScript are used to encode or decode a URI (Uniform Resource Identifier) so that it can be safely used in URLs, queries, and other places where special characters need to be represented as safe ASCII values. The encodeURI() function encodes the string for use in a URI, while decodeURI() decodes an already encoded URI.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What are the predefined functions in javascript?

1 Answers  


Why jquery is used instead of javascript?

1 Answers  


What is argument objects in javascript?

1 Answers  


What is constructor?

1 Answers  


Have you used any browser for debugging? If yes, how is it done?

1 Answers  


what is event bubbling and event capturing in javascript?

1 Answers  


What is the difference between window.onload and ondocumentready?

1 Answers  


What is the Difference between HTML and DHTML

15 Answers   TCS,


What are the variable naming conventions in javascript?

1 Answers  


How to remove the event listener?

1 Answers  


What is a noscript tag?

1 Answers  


What is hoisting in javascript?

1 Answers  


Categories