This website shows how to make and handle non-persistent notifications.
When we click the "Notify me!" button, the website does the following:
Notification()
constructor.
Notification
interface.
When the notification is shown, the user clicks it, or the user closes it, the corresponding event handler runs and logs the event.