JavaScript Tutorial/Global/escape
escape()
Syntax
<source lang="javascript">
escape(string)
escape(expression)</source>
The following example shows how to return the escape() method"s interpretation of user input.
<source lang="javascript">
<html>
<body> <script lanuguage="JavaScript"> </script> <form name="form1"> Enter input: <input type="text" name="input1" size=30> <input type="button" value="Show Escape Value" onClick="showEscapeVal()"> </form> </body> </html></source>