JavaScript Reference/Javascript Methods/escape
"escape()" Example
<html>
<body>
<button onclick="alert(escape("Hello World!"));">Escape function</button>
</body>
</html>
"escape()" Syntax, Parameters and Note
Note:
URL-encodes the specified string.
Syntax:
escape(param1)
Parameters:
param1 Required; the string to URL-encode.