JavaScript Reference/Javascript Methods/escape

Материал из Web эксперт
Перейти к: навигация, поиск

"escape()" Example

   <source lang="javascript">
   

<html> <body> <button onclick="alert(escape("Hello World!"));">Escape function</button> </body> </html>


     </source>
   
  


"escape()" Syntax, Parameters and Note

   <source lang="javascript">

Note: URL-encodes the specified string.

Syntax:

escape(param1)

Parameters:

   param1   Required; the string to URL-encode.
   
     
     </source>