0

i saw it once and i cant find it again:

how to detect via JavaScript if an iphone webapp was opened from a url typing or from an icon in the springboard?

thanks!

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239

1 Answers1

4

You can detect if a page has been opened in full screen mode.

if (window.navigator.standalone) {
  //
} else {
  //
}

Pages launched from home screen icons with the following meta tag will open in full screen mode.

<meta name="apple-mobile-web-app-capable" content="yes" />
Dave Konopka
  • 1,245
  • 1
  • 12
  • 14
  • thanks, damn that's no good:-\ my app cant run on full screen because its a search engine full of outside links... bahh –  Feb 19 '10 at 01:22