The app
event of the Web Manifest API is fired when the browser has successfully installed a page as an application.i
nstalled
Bubbles | No |
Cancelable | No |
Target objects | Window |
Interface | Event |
Examples
function handleInstall(ev) { console.log('Thank you for installing our app!'); } window.onappinstalled = handleInstall;
Inheritance
The appinstalled
event implements the Event
interface — it has available the properties and methods defined on this interface.
Specifications
Specification | Status | Comment |
---|---|---|
Web App Manifest The definition of 'appinstalled' in that specification. |
Working Draft | Initial definition. |
Browser compatibility
[1] This feature is behind a feature preference setting. In about:config, set dom.manifest.oninstall
to true
.
See also
- The associated event handler,
Window.onappinstalled