Solved

break <br> equivalent

Posted on 2001-07-19
8
436 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

929 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

9 Experts available now in Live!

Get 1:1 Help Now