tag in JavaScript? How to write a tag
in JavaScript? +4 javascript Vinay gayakwad Jan 26 '11 at 11:20 source share...">

How to write a <br/"> tag in JavaScript?

How to write a tag <br/> in JavaScript?

+4
source share
3 answers
 var mybr = document.createElement('br'); someElement.appendChild(mybr); 

Further reading:

+13
source
 document.write('<br/>'); 

this should do the trick.

+3
source
 document.write('<br />'); 

Or, since the issue of stack overflow in JavaScript would not be complete without jQuery ...

http://www.thenerdary.net/post/20965430596/beautiful-element-creation-with-jquery

+2
source

Source: https://habr.com/ru/post/1337128/


All Articles