Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

break <br> equivalent

Posted on 2001-07-19
8
Medium Priority
?
470 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:LJ Gaviola
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

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

Hari

0
 

Author Comment

by:LJ Gaviola
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:LJ Gaviola
ID: 6301110
hari, tried that but didnt work. :(
0
 
LVL 1

Accepted Solution

by:
hariweb earned 120 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
Suggested Courses

971 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