mozilla
Your Search Results

    Notifications

    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 = "http://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: Sheppy, MykMelez, thenickperson, adw, JetpackBot, Nohbidy
    Last updated by: Nohbidy,
    Hide Sidebar