
Sunday May 20, 2012
JavaScript
JavaScript is a client side scripting language (meaning it runs in your web browser) and is useful in all sorts of ways. Do not confuse javaScript with the Java language, which is a server side language. One has nothing to do with the other, outside of the fact they share the word java. One of the most common uses for JavaScript is browser detection. Browser detection is necessary because how a browser renders a web page varies by browser type and version. Thankfully, adherence to standards has improved in recent years vs the early days of web programing (recall the wars between Internet Explorer and the old Netscape)and we have javaScript to actively manage browser detection and deploy solutions.
Here are the javaScript properties used for identifying the client's browser
Here is a javaScript object oriented script using the javaScript properties for identifying the client's browser
function Is() {
this.codeName = navigator.appCodeName;
this.browserName = navigator.appName;
this.browserVersion = navigator.appVersion;
this.browserHeaderInfo = navigator.userAgent;
this.operatingSystem = navigator.platform;
}
var is = new Is();
Here is the Browser Detection Information for your Browser
Browser Code Name is: 
Browser Name is: 
Browser Version is: 
Browser Header Info is: 
Operating System is: 
Follow Us