0

Because of browser related issues (ie, the view being different), I have two versions of a script. one that works on everything but IE, and one I wrote specifically to accomodate IE.I found this other script that detects what browser someone is using when they access a website. I was wondering, if there was anyway i could:

1.run this browser detect script FIRST to determine the boolean for IE/not IE 2. then, determining on this value, run one script or the other?

LongForde
  • 113
  • 2
  • 9
  • What script are you talking about? Personally I use modernizir: http://modernizr.com/ – Nate-Wilkins Aug 29 '13 at 17:02
  • Possible duplicate: http://stackoverflow.com/questions/4411551/if-browser-is-internet-explorer-run-an-alternative-script-instead – IgnasK Aug 29 '13 at 17:04

1 Answers1

1

So... What's stopping you from doing:

var IE = checkBrowserFunction;
if(IE) {
    doStuff();
}

? I mean, that seems fairly simple.

Fenixp
  • 645
  • 5
  • 22