Newline in a Javascript function

R

RICHARD BROMBERG

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 </pre> tags but this had no
effect.

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

Thanks
 
S

scripts.contact

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>");
 
L

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 </pre> tags 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?


--
 
D

d d

RICHARD 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 </pre> tags but this had no
effect.
Is it possible to create a new line in the output.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,884
Members
47,419
Latest member
ArturoBres

Latest Threads

Top