2011/03/04

[javascript] Text wrapping in the alert/confirm function

Wrap words in the javascript alert (or confirm).

This doesn't work.
alert("First Line<br/>Second Line")

This doesn't work.
alert("First Line\r\nSecond Line")

This will work
alert("First Line\\r\\nSecond Line")