Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

install

Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите закончить эту работу!

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

Examples

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

window.oninstall = handleInstall;

Inheritance

The install 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 'install' in that specification.
Draft Initial definition.

Browser compatibility

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

Метки документа и участники

 Внесли вклад в эту страницу: fscholz, teoli
 Обновлялась последний раз: fscholz,