You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **`appinstalled`** event of the [Web Manifest API](/en-US/docs/Web/Progressive_web_apps/Manifest) is fired when the browser has successfully installed a page as an application.
This event is not cancelable and does not bubble.
## Syntax
Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property.
```js-nolint
addEventListener("appinstalled", (event) => { })
onappinstalled = (event) => { }
```
## Event type
A generic {{domxref("Event")}}.
## Examples
You can use the `appinstalled` event in an {{domxref("EventTarget/addEventListener", "addEventListener")}} method:
```js
window.addEventListener("appinstalled", () => {
console.log("Thank you for installing our app!");
});
```
Or use the `onappinstalled` event handler property: