Possible Duplicates:
a more graceful multi-line javascript string method
Multiline strings in Javascript
window.lastSavedContents = "test
tester";
That's my JavaScript Code. I get a firebug error saying:
unterminated string literal [Break On This Error] window.lastSavedContents = "test
Indeed; that's simply not valid syntax. Use "\n" to represent a newline:
window.lastSavedContents = "test\n\ntester";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With