jsGuru.com
HomeIntroductionFundamentalsCompatibilityResourcesComments   Browser Sniffing
 
Browser sniffing - love that term - is the programmer's answer to all of the differences between the various browsers, versions and platforms. A genuine pain in the tukus.
    There are three basic ways of finding out what the reader's browser can and cannot do.
    The most common method involves determining what browser, version and platform your page is being viewed on, and then based upon your knowledge or lack thereof you can decide what to do.
    The second method goes straight to the heart of the problem and attempts to directly determine the functionality of the reader's browser. Both of these methods work on the client side of things and are done with javaScript.
    Finally we can attempt to make a determination on the server side by using server side includes.
    Let's take a look at these three methods, how they work, their strengths and weaknesses.
 
Browser/Version/Platform Method
JavaScript Functionality Method
Server Side Method
Making It Work
 
       
    © 1999 bnsDesigns