Thursday, 31 January 2013

New line in JavaScript alert box

\n being a control code for new line.


alert("some text\nmore text in a new line");

No comments:

Post a Comment