JavaScript escape() Function

The escape() function encodes a string. This function makes a string portable, so it can be transmitted across any network to any computer that supports ASCII characters. This function encodes special characters, with the exception of: * @ – _ + . /. Tip: Use unescape() to decode strings.

Syntax

escape(string)

Example:

<script language="JavaScript">

document.write(escape("Need tips? Keep Visiting Paktutorial!"));

</script>

Output:

Need%20tips%3F%20Keep%20Visiting%20Paktutorial%21
DOWNLOAD SOLUTION HERE