Solved

break <br> equivalent

Posted on 2001-07-19
8
435 Views
Last Modified: 2006-11-17
hi guys, just want to know what's the javascript syntax for the break <br>? thanks.
0
Comment
Question by:jean062597
8 Comments
 
LVL 15

Expert Comment

by:a.marsh
ID: 6297723
Not sure what you mean.....this perhaps:

alert("Line One\nLine Two");

Basically it is \n


:o)

Ant
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6297753
Yep :-) Sometimes yu'll also need the \r

\n\r

regards,
CJ
0
 
LVL 1

Expert Comment

by:hariweb
ID: 6297794
..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
 
LVL 1

Expert Comment

by:hariweb
ID: 6297798
..please correct the spelling..i meant document..:)

Hari

0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:jean062597
ID: 6300628
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
 
LVL 1

Expert Comment

by:hariweb
ID: 6301094
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
 

Author Comment

by:jean062597
ID: 6301110
hari, tried that but didnt work. :(
0
 
LVL 1

Accepted Solution

by:
hariweb earned 30 total points
ID: 6301183
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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now