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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbies problems with JS and combining strings

Status
Not open for further replies.

aladdin

Instructor
Aug 7, 2002
9
GB
Hi, I have really beginners' question but the problem is driving me nuts so if someone find few minutes to answer me, I'd appreciate that.
The problem:
I want to send e-mail through simple mailto function in JS. I do want to pass the required data like recipient, subject & body to whatever e-mail client you have and this actually is not a problem because JS and browser do take care of it.

The only problem is that I want to combine message (body) from various strings like:
message="Hi this me" + string1 + string2 !
The problem is, how can I insert line breaks (CR) whatever needed that will break lines between above 3 strings so that they won't be all in one line ! I want forced breaks, every string in new line when it finally appears as body in mail client.!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top