Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.
Note: This page documents the Jetpack Prototype, which is  no longer under active development. Read the experiment report for what we learned from it and the blog post announcing the first SDK release for what we're up to next!

The Notification Box appears at the bottom right corner of the browser and displays important information to the user.

The namespace for this class is jetpack.notifications.

Methods

show(titlestring, [body as string]  iconstring)Draws a notification box.
titleThe head of the notification message.string
bodyThe message itself.stringfalse
iconThe URL of an .ico file.string
jetpack.notifications.show("hello world");

var myBody = " My first message body on Jetpack";
var myIcon = "https://www.mozilla.com/favicon.ico";
jetpack.notifications.show({title: "My first message on jetpack", body: myBody, icon: myIcon});

Document Tags and Contributors

 Contributors to this page: fscholz, Nohbidy, Sheppy, nickmccurdy, MykMelez, JetpackBot, adw
 Last updated by: fscholz,