Https://developer.mozilla.org/en/nsIPromptService
If you use a dialog box such as Window.alert or Window.confirm, its title has no way to change.
In order to be able to modify the title of this dialog box in Firefox plugin, you can replace it with the following code:
function Triggeralert (title, message) {
var nsips = components.classes["@mozilla. Org/embedcomp/prompt-service;1" ].getservice (Components.interfaces.nsIPromptService);
Nsips.alert (null, title, message);
}
function triggerconfirm (title, message) {
var nsips = components.classes["@mozilla. Org/embedcomp/prompt-service; 1 "].getservice (Components.interfaces.nsIPromptService);
return Nsips.confirmcheck (NULL, title, message, "", {value:false});
}
For more information, please refer to:
Https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIPromptService
http://www.ibm.com/developerworks/cn/web/1108_chengfu_ffplugin/
Https://developer.mozilla.org/en/Code_snippets/Dialogs_and_Prompts#Passing_arguments_and_displaying_a_ Dialog
Https://developer.mozilla.org/En/XUL
https://www.ibm.com/developerworks/cn/web/ wa-lo-firefox-ext/