break <br> equivalent

hi guys, just want to know what's the javascript syntax for the break <br>? thanks.
LJ GaviolaSoftware QAAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
hariwebConnect With a Mentor Commented:
Hi.

see this page..the example in this page works well..press the Mail Window Test button and see...

the link is ....

http://developer.netscape.com/viewsource/husted_mailto/mailto.html

Hari
0
 
a.marshCommented:
Not sure what you mean.....this perhaps:

alert("Line One\nLine Two");

Basically it is \n


:o)

Ant
0
 
CJ_SCommented:
Yep :-) Sometimes yu'll also need the \r

\n\r

regards,
CJ
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
hariwebCommented:
..or u can possibly say doument.write("<br>")or documnet.writeln...

should be careful as to the place u r using this though..

Hari
0
 
hariwebCommented:
..please correct the spelling..i meant document..:)

Hari

0
 
LJ GaviolaSoftware QAAuthor Commented:
hello!it isn't working...
nway, here's the code i want resolve. i have an page where user can type in values. then i want those values sent through email by opening a new mail. here's what i did:

location.href = "mailto:jean@pciasia.com&subject=Staff Tracking Update&body=Project No: " + formObj.Project.value + "Name: " + formObj.Project.value;

problem is i want the Name: and it's value on the next line. how do i do that?

thanks :)

0
 
hariwebCommented:
try this...

location.href = "mailto:jean@pciasia.com&subject=Staff Tracking Update&body=Project No: " + formObj.Project.value
+ "<br> Name: " + formObj.Project.value;

Hari



0
 
LJ GaviolaSoftware QAAuthor Commented:
hari, tried that but didnt work. :(
0
All Courses

From novice to tech pro — start learning today.