MDN self-hosted library · e01.org

Notification: icon property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
const notification = new Notification("To do list", {
  body: text,
  icon: img,
});