Global JavaScript Tutorial

Syntax

escape(string)
    escape(expression)
The escape() method returns a string object in which all non-alphanumeric characters are converted to their numeric equivalent in the form %XX.
The XX is a hexadecimal number representing the non-alphanumeric character.


    
    var newString = escape("A & B C");
    document.write(newString);