New line in java script

Hi!I have a problem with stirng in java script.

f.e.

I have two strigs:

str1$ = “string1”;

str2$ = “string2”

And now I can set this values into field:

mydoc.name_field.value = str1$ + “” + str2$.

It set strings into field very good. Field display me:

str1 str2

But I can set this two string in other lines, and I want to display this strings in field so:

str1

str2.

Is tehe any way to do this?

Subject: New line in java script

try:you don’t need $ in javascript

newStr = str1 + “\n” + str2;

Subject: New line in java script

Is there any way to do this in Lotus Script ??