views:

146

answers:

1

Hi guys,

I want to know what is vertical tab, form feeds and backspace character and how to use them in JavaScript? Or is there any chance I have to(should) use them?

+1  A: 
  • Vertical tab: \v = U+000b
    • "Position the form at the next line tab stop." (ignored on Safari.)
  • Form feed: \f = U+000c
    • "On printers, load the next page. In some terminal emulators, it clears the screen." (truncates the string on Safari.)
  • Backspace: \b = U+0008
    • "Move the cursor one position leftwards." (ignored on Safari.)

These escape sequences are defined probably because all other C-derived languages have them. Generally you won't need to use them, nor they will have useful effects on the text.

KennyTM