PDA

View Full Version : apple-mobile-web-app-capable tag disables onload event




allanibanez
Mar 3, 2009, 01:57 PM
I have been using the <meta name="apple-mobile-web-app-capable" content="yes" /> meta tag to hide the interface of safari to give a more "naitive" look to a webapp I am developing. Today however, I have discovered that when using this tag, javascript onLoad event handlers don't work. For instance, when loading the webapp in the safari browser, onLoad even handlers load data from a cookie and display it in a text field. However when loading the webapp from the homescreen icon, the onLoad event handlers don't work.

Has anyone else come across this? And are there any ways to get round it?