0

our company has a website with so many pages and some of these pages can be open with internet explorer object inside our desktop application. I'm wondering if there any way to find out whether a page is opened with external browser or with the IE object?

Note that we want to detect this with some code inside our pages aad also we want to seperate ie object requests from external IE request.

Dave Chen
  • 10,887
  • 8
  • 39
  • 67
David Peterson
  • 552
  • 14
  • 31
  • 1
    In javascript you can use navigator.userAgent to identify your browser. It might be worth checking if the IE Object uses another user agent than the IE browser. – aaberg May 29 '12 at 10:08
  • 1
    see this http://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser – Priyank Patel May 29 '12 at 10:09
  • @Priyank: but i want to seperate ie object requests from external IE. how can i do this? – David Peterson May 29 '12 at 10:20

1 Answers1

3

You can check using $.browser.msie to detect if the page is opened with internet explorer. This will return true when the page will be opened using internet explorer and then you can perform your task.

user850234
  • 3,373
  • 15
  • 49
  • 83