I have an array of string.
I would like to display it onto the page but the message is too long so I would like to break it up and put it on 2 lines.
Is this even possible??Code:var txtMsg = [ "First text", "Second text", "Third text", "Very long text here, blah, blah, blah, blah, blah" ];
I was thinking something like this but it doesn't work.
Code:var txtMsg = [ "First text", "Second text", "Third text", "Very long text, blah" + '<br />' + "blah, blah, blah, blah" ]; document.writeln(txtMsg(3));


Reply With Quote
Bookmarks