Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

break <br> equivalent

hi guys, just want to know what's the javascript syntax for the break <br>? thanks.
0
LJ Gaviola
Asked:
LJ Gaviola
1 Solution
 
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
 
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
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
 
hariwebCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now