window.addEventListener("appinstalled", () => {
console.log("Thank you for installing our app!");
});Window: appinstalled event / notebook
Window: appinstalled event
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
window.onappinstalled = () => {
console.log("Thank you for installing our app!");
};