Window: appinstalled event

Obsolete

This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

The appinstalled event of the Web Manifest API is fired when the browser has successfully installed a page as an application.

Bubbles No
Cancelable No
Interface Event
Event handler onappinstalled

Examples

You can use the appinstalled event in an addEventListener method:

window.addEventListener('appinstalled', function() {
  console.log('Thank you for installing our app!');
});

Or use the onappinstalled event handler property:

window.onappinstalled = function() {
  console.log('Thank you for installing our app!');
};

Browser compatibility

BCD tables only load in the browser

See also