1

Possible Duplicate:
Detect inside Android Browser or WebView

i want to detect whether the web page is opened in ios web view or in other extenal sample browser. how to check this on javascript code?

Community
  • 1
  • 1

1 Answers1

2

Take a look at the user-agent, there should be differences - notably, non-webview mobile devices explicitly mention Safari. The following question has some sample code that you can use to detect the difference.

detect ipad/iphone webview via javascript

Community
  • 1
  • 1
rybosome
  • 5,046
  • 7
  • 44
  • 64