You may try \n to give a line break in Javascript.E.g.strPopUp = 'Line1';strPopUp += '\n';strPopUp += 'Line2';alert(strPopUp);