Interface Notification

This Notifications API interface is used to configure and display desktop notifications to the user.

MDN Reference

Hierarchy

Properties

body: string
data: any
icon: string
lang: string
onclick: ((this, ev) => any)

Type declaration

onclose: ((this, ev) => any)

Type declaration

onerror: ((this, ev) => any)

Type declaration

onshow: ((this, ev) => any)

Type declaration

tag: string
title: string

Methods

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    MDN Reference

    Parameters

    Returns boolean