Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

carriage return

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
hi all
i do have a string that i then display on a web page(in a js code).

i have tryed this :

strFillOp += "alert(test);\n";

but the result is :

alert(test);alert(test);alert(test);


and what i want is :
alert(test);
alert(test);
alert(test);

what should i put in stead of \n ? Best regards X-),
Elise
 
Hi.

I do not know which way you use to display the string.
You could try to put a break line(<br>) instead of a &quot;\n&quot;.

Bye.

--
Globos
 
nope because it's putted in a javascript code
i found the answer : strFillOp += &quot;alert(test);\r\n&quot;;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top