Microsoft® JScript™ Special Characters |
JScript Tutorial Previous | Next |
JScript provides special characters that allow you to include in strings some characters you can't type directly. Each of these characters begins with a backslash. The backslash is an escape character you use to inform the JScript interpreter that the next character is special.
Escape Sequence Character \b Backspace \f Form feed \n Line feed (newline) \r Carriage return \t Horizontal tab (Ctrl-I) \' Single quotation mark \" Double quotation mark \\ Backslash Notice that because the backslash itself is used as the escape character, you cannot directly type a one in your script. If you want to write a backslash, you must type two of them together (\\).
You can use these escape sequences to control formatting of text inside <PRE> and <XMP> tags and, to some extent, inside alert, prompt, and confirm message boxes.document.write('The image path is C:\\webstuff\\mypage\\gifs\\garden.gif.'); document.write('The caption reads, "After the snow of \'97. Grandma\'s house is covered."');
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/inet/iis/jscript/htm/js922.htm, 3KB, , updated: 1997/10/2 04:09, local time: 2025/5/3 11:53,
52.15.244.228:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/inet/iis/jscript/htm/js922.htm"> Special Characters</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.