You are here: irt.org | FAQ | JavaScript | Form | 3.3 | Q195 [ previous next ]
Place a \n at the end of each line:
<SCRIPT LANGUAGE="JavaScript"><!-- message = '<form><TEXTAREA NAME="body" ROWS=7 COLS=27>'+ 'This is supposed to be written on line 1\n'+ 'This is supposed to be written on line 2 of the text area\n'+ 'etc...\n'+ '<\/TEXTAREA><\/form>' document.write(message); //--></SCRIPT>