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

<p>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:</p>

<pre><code>confirm("This is the content of the message box", "Modified title");
</code></pre>

<p>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.</p>

[{'answer_id': 43959, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 7, 'selected': True, 'text': '<p>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.</p>\n\n<p>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.</p>\n'}, {'answer_id': 43964, 'author': 'samjudson', 'author_id': 1908, 'author_profile': 'https://Stackoverflow.com/users/1908', 'pm_score': 0, 'selected': False, 'text': "<p>You can't unfortunately. The only way is to simulate this with a window.open call.</p>\n"}, {'answer_id': 43965, 'author': 'Brian R. Bondy', 'author_id': 3153, 'author_profile': 'https://Stackoverflow.com/users/3153', 'pm_score': 2, 'selected': False, 'text': '<p>Not possible.  You can however use a third party javascript library that emulates a popup window, and it will probably look better as well and be less intrusive. </p>\n'}, {'answer_id': 43966, 'author': 'Ben Scheirman', 'author_id': 3381, 'author_profile': 'https://Stackoverflow.com/users/3381', 'pm_score': 0, 'selected': False, 'text': "<p>Don't use the confirm() dialog then...  easy to use a custom dialog from prototype/scriptaculous, YUI, jQuery ... there's plenty out there.</p>\n"}, {'answer_id': 43969, 'author': 'Slartibartfast', 'author_id': 4433, 'author_profile': 'https://Stackoverflow.com/users/4433', 'pm_score': 0, 'selected': False, 'text': "<p>I know this is not possible for alert(), so I guess it is not possible for confirm either. Reason is security: it is not allowed for you to change it so you wouldn't present yourself as some system process or something.</p>\n"}, {'answer_id': 336279, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Yes, this is impossible to modify the title of it. If you still want to have your own title, you can try to use other pop-up windows instead.</p>\n'}, {'answer_id': 3727783, 'author': 'Matt Clark', 'author_id': 449641, 'author_profile': 'https://Stackoverflow.com/users/449641', 'pm_score': 2, 'selected': False, 'text': '<p>You can always use a hidden div and use javascript to "popup" the div and have buttons that are like yes and or no. Pretty easy stuff to do.</p>\n'}, {'answer_id': 24963561, 'author': 'Ramon', 'author_id': 1211777, 'author_profile': 'https://Stackoverflow.com/users/1211777', 'pm_score': 4, 'selected': False, 'text': '<p>YES YOU CAN do it!! It\'s a little tricky way ; )  (it almost works on ios)</p>\n\n<pre><code>var iframe = document.createElement("IFRAME");\niframe.setAttribute("src", \'data:text/plain,\');\ndocument.documentElement.appendChild(iframe);\nif(window.frames[0].window.confirm("Are you sure?")){\n    // what to do if answer "YES"\n}else{\n    // what to do if answer "NO"\n}\n</code></pre>\n\n<p>Enjoy it!</p>\n'}]
['https://Stackoverflow.com/questions/43955', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2241/']