开发者

View HTML code of a iPhone WebApp that's on the Home Screen

Does anyone know how to view the HTML code of a webapp that's saved to the iPhone home screen? Some webapps redirect to a different html file when they get "promoted" to the home screen. I开发者_JS百科t's that code I'd like to examine.


According to Apple's documentation, the mode in which a webapp is being viewed can be retrieved using JavaScript. So, if you send the iPhone's User-agent header from your computer and then grab a copy of the first HTML document that gets served up (before JavaScript has a chance to do any redirects) you should be able to find some JavaScript code that decides how to display the webapp based on the iPhone viewing mode.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜