0
changing line
how to change line in j.s
3 Answers
+ 5
If you want to print a text in HTML page, using javascript; you have two options. First one is to use document.writeln and second to use something like.. document.write("text <br>")..
0
you can embed an HTML tag within your string like <br>. note that if you use any block element like P or h1, h2.... etc, it should break line automatically (usually unless you play with that in your css)
0
oh, i forgot. you can also use \n