{{EventRef}}
The install
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 | {{domxref("Window")}} |
Interface | {{domxref("Event")}} |
Examples
function handleInstall(ev) { console.log('Thank you for installing our app!'); } window.oninstall = handleInstall;
Inheritance
The install
event implements the {{domxref("Event")}} interface — it has available the properties and methods defined on this interface.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('Manifest', '#dfn-install', 'install')}} | {{Spec2('Web Speech API')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatGeckoDesktop(49)}} [1] | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Chrome | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoMobile(49)}} [1] | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
[1] This feature is behind a feature preference setting. In about:config, set dom.manifest.oninstall
to true
.
See also
- The associated event handler, {{domxref("Window.oninstall")}}