Visual theme:

1. Simple confirmatoin

The simple confirmation message dialog showing user's choice.
JSDialog.showConfirmDialog(
	"Continue?",
	function(result) {
		JSDialog.showMessageDialog("Result: `" + result + "`", "info");
	}
);

2. Warning multiline confirmation

Warning confirmation window with handling of pressing of any of the buttons.
JSDialog.showConfirmDialog(
	"Save document before it will be closed?\nIf you press `No` all unsaved changes will be lost.",
	function(result) {
		JSDialog.showMessageDialog("Result: `" + result + "`", "info");
	},
	"warning",
	"yes|no|cancel"
);

3. Error multiline message

Shows a stack trace of a Java exception and handles user choice.
See that the title of "Yes" button set to "Continue" but the result will be always "yes" if user presses the button.
JSDialog.showConfirmDialog(
	"Exception in thread \"main\" java.lang.NullPointerException\n" +
	"\tat com.example.myproject.Book.getTitle(Book.java:16)\n" +
	"\tat com.example.myproject.Author.getBookTitles(Author.java:25)\n" +
	"\tat com.example.myproject.Bootstrap.main(Bootstrap.java:14)\n\n" +
	"Continue execution?",
	function(result) {
		JSDialog.showMessageDialog("Result: `" + result + "`", "info");
	},
	"error",
	"yes:Continue|abort",
	600,
	130
);

4. Custom icon confirmation

Shows a confirmation dialog with three options (all titles are changed).
The icon is set to custom URL.
After dialog is closed, information message dialog with custom icon is shown.
JSDialog.showConfirmDialog(
	"Do you love JS+?",
	function(result) {
		JSDialog.showMessageDialog(
			"We love you too :-)",
			"http://js.plus/img/icons64/love.png"
		);
	},
	"http://js.plus/img/icons64/jsplus.png",
	"yes:Yes, yes and yes!|no:Yes, of course|cancel:Yes"
);