Using Special Characters in JavaScript : Char : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Char »

 

Using Special Characters in JavaScript



    b indicates a backspace.

    f indicates a form feed.

    n indicates a new line.

    r indicates a carriage return.

    t indicates a tab.

    \ indicates a backslash.

    ' indicates a single quote.

    " indicates a double quote.

     Special characters do not take effect unless enclosed in a 
     pre-formatted block 

<html>
<head>
  <title>JavaScript Unleashed</title>
</head>
<body>
  <pre>
    <script type="text/javascript">
    <!--
      document.writeln("tPersonnel");
      document.writeln("NamettAddress");
      document.writeln("Jeffttjeff@company.com");
      document.writeln("Billttbill@company.com");
      document.writeln("Kimttkim@company.com");
    // -->
    </script>
  </pre></body>
</html>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Char