Multi-line alert in Javascript
This just happened to me... exactly. I needed to change it to \\n
instead of \n
.
alert("Hello again! This is how we"+"\\n"+"add line breaks to an alert box!");
Haven't tested but does this work?
alert("Hello again! This is how we \n add line breaks to an alert box!");