You are here: irt.org | FAQ | JavaScript | Misc | Q833 [ previous next ]
By including \n you can create line breaks in the plain text displayed in the dialogue box:
<SCRIPT LANGUAGE="JavaScript"><!-- var message = 'this is the first line\nthis is the second line'; var answer = confirm(message); //--></SCRIPT>