Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set confirmation prompt box's title

Tags:

javascript

Any way to set the confirmation prompt (confirm() in javascript) box's title? At the moment it will display the confirmation prompt box's title to "Windows Internet Explorer" if it run in IE and "the page at http://... said: " in Firefox.

like image 709
Jin Yong Avatar asked Apr 07 '09 05:04

Jin Yong


2 Answers

Neither Mozilla nor IE support setting a title, as indicated in the linked specs.

like image 166
DocMax Avatar answered Sep 28 '22 02:09

DocMax


It is not possible according to specs. May I suggest that you use a JavaScript modal box instead.

I've used wildbit labs' Modalbox which works quite well.

like image 28
Salman A Avatar answered Sep 28 '22 03:09

Salman A