The following example shows how to return the escape() method's interpretation of user input. : escape : Global JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Global » escape »

 

The following example shows how to return the escape() method's interpretation of user input.

















<html>
    <body>
    <script lanuguage="JavaScript">
    <!--
    function showEscapeVal(){
         alert("The escape value is: " + escape(document.form1.input1.value));
    }
    -->
    </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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Global
» escape