0

It is possible to disable the close action when clicking on the alert generated with nsIAlertService?I want the alert to stay until it reaches the timeout and to click on it without closing it.

user1256960
  • 303
  • 3
  • 11

1 Answers1

1

No, a click always closes the alert (can be seen in the onAlertClick function). You have to either accept this behavior or use a different way to display notifications, e.g. using <xul:panel>.

Wladimir Palant
  • 56,865
  • 12
  • 98
  • 126