What is escape() function?
Submitted by: Administrator► The escape() function is used to encode the string to convert it as portable string so that it can be sent across any network to any computer which supports ASCII characters.
► This function encodes special characters, with the exception of @ * + - / . _
► Syntax :
escape(string1)
Where string1 is the string to be encoded.
► Example :
<script>
document.write(escape("Questions? Get from us!"));
</script>
► Output :
Questions%3F%20Get%20from%20us%21
Submitted by:
► This function encodes special characters, with the exception of @ * + - / . _
► Syntax :
escape(string1)
Where string1 is the string to be encoded.
► Example :
<script>
document.write(escape("Questions? Get from us!"));
</script>
► Output :
Questions%3F%20Get%20from%20us%21
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. |