A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/Window/appinstalled_event below:

Window: appinstalled event - Web APIs

Window: appinstalled event

Limited availability

The appinstalled event of the Web Manifest API 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 addEventListener(), or set an event handler property.

addEventListener("appinstalled", (event) => { })

onappinstalled = (event) => { }
Event type

A generic Event.

Examples

You can use the appinstalled event in an addEventListener method:

window.addEventListener("appinstalled", () => {
  console.log("Thank you for installing our app!");
});

Or use the onappinstalled event handler property:

window.onappinstalled = () => {
  console.log("Thank you for installing our app!");
};
Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3