Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q833 Can you create a line break in a confirm dialogue box so that box width is less?

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>

Feedback on 'Q833 Can you create a line break in a confirm dialogue box so that box width is less?'

©2018 Martin Webb