Javascript – Changing the default title of confirm() in JavaScript

javascript

Is it possible to modify the title of the message box the confirm() function opens in JavaScript?

I could create a modal popup box, but I would like to do this as minimalistic as possible.
I would like to do something like this:

confirm("This is the content of the message box", "Modified title");

The default title in Internet Explorer is "Windows Internet Explorer" and in Firefox it's "[JavaScript-program]." Not very informative. Though I can understand from a browser security stand point that you shouldn't be able to do this.

Best Answer

This is not possible, as you say, from a security stand point. The only way you could simulate it, is by creating a modeless dialog window.

There are many third-party javascript-plugins that you could use to fake this effect so you do not have to write all that code.