I want to run a piece of javascript code when apple touch icon/home screen icon of my web app is clicked ,how can i get the click event for this? Thanks
Are you really looking for an event? Or do you want to know if your web page was loaded though an apple touch icon click or regular browsing?
In the later case, your question was already asked:
However, I was not able to use the window.navigator.standalone
technique described in the answers. You should study this carefully.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.