Window.onappinstalled
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
语法
window.onappinstalled = function(event) { ... };
示例
js
window.onappinstalled = function (ev) {
console.log("The application was installed.");
};
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
appinstalled event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.