class js.html.Notification extends EventTarget

Available on js

Mobile Only in Gecko 2.0

Available only in Firefox Mobile as of Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Non-standard

The notification object, which you create using the navigator.mozNotification  object's createNotification() method, is used to configure and display desktop notifications to the user.



Documentation for this class was provided by MDN.

Class Fields

Instance Fields

var onclick:EventListener

 A function to call when the notification is clicked.

var onclose:EventListener

 A function to call when the notification is dismissed.

function new(title:String, options:Dynamic):Void

function cancel():Void

function close():Void

function show():Void