escape() : escape : Global JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Global » escape »

 

escape()










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.












<html>
    <script lanuguage="JavaScript">

    var newString = escape("A & B C");
    document.write(newString);
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Global
» escape