开发者

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

开发者 https://www.devze.com 2023-01-10 09:38 出处:网络
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

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

精彩评论

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