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 03:09, local time: 2024/11/24 21:46,
3.144.89.152:LOG IN
|
©2024 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://ecomorder.com/techref/inet/iis/jscript/htm/js922.htm"> Special Characters</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.