JScript provides special characters that allow you to include in strings some characters you cannot 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

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 one in your script. If you want to write a backslash, you must type two of them together (\\).

 CopyCode imageCopy Code
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."');

In Vbsedit, you only need to press F1 to get Help for the keyword under the cursor!





Home  

Copyright © 2001-2020 adersοft