+ 1
Hi, how do i make the "br>" go away?
The "br>" is shown on the allert box, but if i delet it from the code, it won't run
6 Answers
+ 18
Yosef
in alert u should write \n instead of <br>
as new line character
check out this link for more đ
https://googleweblight.com/i?u=https://stackoverflow.com/questions/1841452/new-line-in-javascript-alert-box&hl=en-IN&geid=1026
+ 18
Yosef
\n is new line character
/n is string
\ is different than /
+ 7
for (i=1, text="missipie"; i<=5; i++) {
alert (i+text +"\n");
}
+ 1
It doesn't work, should the /n be a string?
+ 1
Ohh, i see i did /n instead of \n...
0
Thx u guys