navigator.setAppBadge(12);Badging API / notebook
Badging API
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
navigator.clearAppBadge();Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
navigator.setAppBadge(12);navigator.clearAppBadge();