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
Asked
Active
Viewed 273 times
1 Answers
0
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:
- iPhone WebApps, is there a way to detect how it was loaded? Home Screen vs Safari?
- Determine if user navigated from mobile Safari
However, I was not able to use the window.navigator.standalone
technique described in the answers. You should study this carefully.

Community
- 1
- 1

philippe_b
- 38,730
- 7
- 57
- 59
-
Hi yes i really want that click event to run my code. – Tushar Sawant Mar 24 '14 at 06:42