Is \\n the universal newline character sequence in Javascript for all platforms? If not, how do I determine the character for the current environment?
\\n
I
I believe it is -- when you are working with JS strings.
If you are generating HTML, though, you will have to use tags (not \n, as you're not dealing with JS anymore)
\n