Mozilla's getting a new look. What do you think? https://mzl.la/brandsurvey

Window.oninstall

The oninstall property of the Window interface represent the event handler for the install event, which is thrown each time the page is successfully installed as a web app.

Syntax

window.oninstall = function(event) { ... };

Example

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

window.oninstall = handleInstall;

Specifications

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

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? 49 (49) ? ? ?
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support ? ? 49.0 (49) ? ? ? ?

See also

Document Tags and Contributors

 Contributors to this page: teoli
 Last updated by: teoli,