Compare Revisions

Using popup notifications

Change Revisions

Revision 71258:

Revision 71258 by Sheppy on

Revision 374861:

Revision 374861 by admo on

Title:
Using popup notifications
Using popup notifications
Slug:
Using_popup_notifications
Using_popup_notifications
Tags:
Notifications
"Notifications"
Content:

Revision 71258
Revision 374861
n125Components.utils.import('resource://app/modules/PopupNotificationn125Components.utils.import('resource://gre/modules/PopupNotification
>s.jsm');>s.jsm');
nn131// browser
131gBrowser.selectedBrowser,  /*browser*/132gBrowser.selectedBrowser,
133// popup id
132"PDES-popup", /*id*/134"PDES-popup",
135// message
133"Hi, there!, I'm gonna show you something today!!",/*message*/136"Hi, there!, I'm gonna show you something today!!",
134null, /* anchor ID */137// anchor id
135/* mainAction */138null,
139// main action
n144null, /* secondaryActions*/n148// secondary action
145{ blablal:'options'}149null,
150// options
151
152  // Alternative way to set the popup icon
153  popupIconURL: "chrome://popupnotifications/skin/mozlogo.png"
154}
t150}, 900); //Time in seconds to disappear the door-hanger popup.t159}, 900); // Time in milliseconds to disappear the door-hanger pop
 >up.

Back to History