Solved

break <br> equivalent

Posted on 2001-07-19
8
438 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 1

Expert Comment

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

Hari

0
 

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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

773 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