Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Misc | Q833 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.