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
Target objects Window
Interface Event


function handleInstall(ev) {
  console.log('Thank you for installing our app!'); 

window.onappinstalled = handleInstall;


The appinstalled event implements the Event interface — it has available the properties and methods defined on this interface.


Specification Status Comment
Web App Manifest
The definition of 'appinstalled' in that specification.
Working Draft Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? 49 (49) [1] ? ? ?
Feature Android Chrome Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? ? 49.0 (49) [1] ? ? ?

[1] This feature is behind a feature preference setting. In about:config, set dom.manifest.oninstall to true.

See also

Document Tags and Contributors

Contributors to this page: sarunint, chrisdavidmills, fscholz, teoli
Last updated by: sarunint,