Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

break <br> equivalent

Posted on 2001-07-19
8
Medium Priority
?
461 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
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 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

722 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