By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,248 Members | 1,498 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,248 IT Pros & Developers. It's quick & easy.

Newline in a Javascript function

P: n/a
I am using the following line in a javascript function, but it does not
produce a neww line.
document.writeln("INSIDE THE PRODUCT FUNCTION \n") ;

One reference said to use the <pre and </pretags but this had no
effect.

Is it possible to create a new line in the output.

Thanks

Jun 20 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Jun 20, 8:15 am, "RICHARD BROMBERG" <nore...@att.netwrote:
I am using the following line in a javascript function, but it does not
produce a neww line.
document.writeln("INSIDE THE PRODUCT FUNCTION \n") ;
document.writeIn("xx <br>");

Jun 20 '07 #2

P: n/a
Lee
RICHARD BROMBERG said:
>
I am using the following line in a javascript function, but it does not
produce a neww line.
document.writeln("INSIDE THE PRODUCT FUNCTION \n") ;

One reference said to use the <pre and </pretags but this had no
effect.

Is it possible to create a new line in the output.
The output is HTML. Newlines in HTML have no meaning other than as
whitespace. How do you make a line break in HTML?
--

Jun 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.