<?xml version="1.0" encoding = "utf-8"?>

<snippet xmlns:MMString="http://www.macromedia.com/schemes/dat/string/" MMString:name = "Snippets/JavaScript/browser_functions/browserInfo_csn/snippet/name/Browser" MMString:description = "Snippets/JavaScript/browser_functions/browserInfo_csn/snippet/description/A" preview="code" type="block">

<insertText location="beforeSelection">

<![CDATA[// Example:

// var b = new BrowserInfo();

// alert(b.version); 

function BrowserInfo()

{

  this.name = navigator.appName;

  this.codename = navigator.appCodeName;

  this.version = navigator.appVersion.substring(0,4);

  this.platform = navigator.platform;

  this.javaEnabled = navigator.javaEnabled();

  this.screenWidth = screen.width;

  this.screenHeight = screen.height;

}

]]>

</insertText>

<insertText location="afterSelection"><![CDATA[]]>

</insertText>

</snippet>

