The Notification interface of the Notifications API is used to configure and display desktop notifications to the user.
Documentation Notification by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Static variables
Constructor
Variables
read onlybody:String
The body string of the notification as specified in the options parameter of the constructor.
read onlydir:NotificationDirection
The text direction of the notification as specified in the options parameter of the constructor.
read onlyicon:String
The URL of the image used as an icon of the notification as specified in the options parameter of the constructor.
read onlylang:String
The language code of the notification as specified in the options parameter of the constructor.
onclick:Function
A handler for the click event. It is triggered each time the user clicks on the notification.
onclose:Function
A handler for the close event. It is triggered when the user closes the notification.
onerror:Function
A handler for the error event. It is triggered each time the notification encounters an error.