+ 1
JavaScript string problem...
How do you "enter" (go to the next line) inside a string with JavaScript?
2 Answers
+ 5
Not sure with your case
case 1:
var str = "@"+
"B";
That's it or....
var str = "@\
B";
case 2:
var str = "@\nB";//for alert box or textarea
var str = "@<br>B";//For document.write or usual html element
+ 1
Thanks! That helped a lot!!!